From: Dan S. <dy...@fu...> - 2001-02-07 15:18:50
|
That's a no-no. Every instance of any of the widgets would be using the same JavaScript object and wreck havoc, try it and you'll see there's no better way than using standard prototyping. Dan On Wed, Feb 07, 2001 at 02:59:24AM -0500, Robert Rainwater wrote: > > 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 |