[Laszlo-dev] Do we really need top-level name => id idiom?

P T Withington ptw at laszlosystems.com
Wed Apr 9 17:11:50 PDT 2008


Because I can't see how to implement that at runtime in swf9.

Currently, if I say:

   new <lznode subclass>(canvas, {name: foo});

the global `foo` will be bound to my instance.  In particular, this  
idiom is currently used by `lzAddLocalData` and `lzpreloader`.  Do  
local datasets really need to be stored as globals?  This seems like  
namespace pollution to me.  We can't do this in swf9 because swf9 does  
not let you dynamically add global names.

I would like to remove support for a top-level name acting as an id.   
In fact, our documentation says that both `name` and `id` are final,  
which would indicate to me that you should not be able to supply them  
at run time at all. IWBRN to remove this wart.


More information about the Laszlo-dev mailing list