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
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
: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
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