[Laszlo-dev] classChildren should be a `static var children`
Henry Minsky
henry.minsky at gmail.com
Fri Jan 18 13:00:15 PST 2008
yes!
On Jan 18, 2008 1:52 PM, P T Withington <ptw at pobox.com> wrote:
> I'd like to make classChildren be a class var (and just name it
> children), instead of sticking it in the class prototype the way we do
> now. I think this makes it more parallel to the setters, etc. Like
> the setters, when you instantiate a node, you append any children of
> the instance to the class children to get all the children of the
> instance. If we always define it, we can clean up a bunch of the
> silly code that has to check for it existing and just say:
>
> this.children = this.constructor.children.concat(children);
>
> Sound ok?
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20080118/5211d9df/attachment.html
More information about the Laszlo-dev
mailing list