this doesn't save memory or anything.. methods are not recreated for every object instance, but are just directed thru the prototype chain.
 
 

Pascal Bestebroer
[EMAIL PROTECTED]
http://www.dynamic-core.net

-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Doug Melvin
Verzonden: donderdag 8 februari 2001 0:47
Aan: [EMAIL PROTECTED]
Onderwerp: [Dynapi-Dev] global functions

It occurs to me that certain functions need not be included with EVERY instance of a Layer..
 
how about moveing some of the DynLayer function to
Global functions?
 
so instead of MyLayer.setHTML('arp');
we use
setHTML(MyLayer,'arp');
 
how's that sound?
 
I can imagion that off-loading just a few functions will dramatically improve the load-time and mem ussage
 

---
Outgoing mail is certified Virus Free by AVG Free Edition
http://www.grisoft.com/html/us_index.cfm
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.230 / Virus Database: 111 - Release Date: 1/25/01

Reply via email to