From: Pascal B. <pa...@dy...> - 2001-02-07 21:13:42
|
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 pa...@dy... http://www.dynamic-core.net -----Oorspronkelijk bericht----- Van: dyn...@li... [mailto:dyn...@li...]Namens Doug Melvin Verzonden: donderdag 8 februari 2001 0:47 Aan: dyn...@li... 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 |