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 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
>> [EMAIL PROTECTED]
>> http://lists.sourceforge.net/lists/listinfo/dynapi-dev

> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev


----------------------
DynAPI Snapshots: http://dynapi.sourceforge.net/snapshot/
DynAPI Homepage: http://dynapi.sourceforge.net/



_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to