From: Pascal <pb...@oi...> - 2001-02-07 08:08:44
|
I don't think the object is created an extra time when doing it like this.. It just a reference to the object prototype, not and object instance (if I got that right) But it might be worth testing it and see what it does for memory usage. And also check to see if you can inherti from that list widget as well. Pascal Bestebroer (pb...@oi...) Software ontwikkelaar Oberon Informatiesystemen b.v. http://www.oibv.com > -----Oorspronkelijk bericht----- > Van: dyn...@li... > [mailto:dyn...@li...]Namens Robert Rainwater > Verzonden: woensdag 7 februari 2001 8:59 > Aan: DynAPI Development List > Onderwerp: [Dynapi-Dev] Widget Initializers > > > > I was wondering if it would be better on memory to use the same object > for the prototype initializers in the widgets. > > Like: > List.prototype = new DynLayer() > > could be changed to > List.prototype = DynLayer.static > > where > DynLayer.static = new DynLayer(); > > If you initialized DynLayer.static in the DynLayer, would it be > possible to use this same object for initializing all of the > prototypes that subclass the dynlayer(the widgets)? > > -- > // Robert Rainwater > ---------------------- > DynAPI Snapshots: http://dynapi.sourceforge.net/snapshot/ > DynAPI Homepage: http://dynapi.sourceforge.net/ > > > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > |