Re[2]: [Dynapi-Dev] Widget Initializers

2001-02-07 Thread Robert Rainwater
But wouldn't they be sharing the same methods, but not the same properties, because those are reassigned in the widget constructor. -- // Robert Rainwater On 2/7/2001, 4:13:04 PM EST, Dan wrote about "[Dynapi-Dev] Widget Initializers": > That's a no-no. Every instanc

Re: [Dynapi-Dev] Widget Initializers

2001-02-07 Thread Dan Steinman
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

RE: [Dynapi-Dev] Widget Initializers

2001-02-06 Thread Pascal
: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 ch

[Dynapi-Dev] Widget Initializers

2001-02-06 Thread Robert Rainwater
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 Dy