[Laszlo-dev] For Review: Change 20070802-hqm-4 Summary: make LzDataElement.makeNodeList a static class method
P T Withington
ptw at openlaszlo.org
Thu Aug 2 10:17:09 PDT 2007
On 2007-08-02, at 12:47 EDT, Henry Minsky wrote:
> To make it a static method, need to declare it static on both the
> trait and
> then a make pointer to that method from lzDataElement, similar to how
> valueToElement was done.
Darned annoying, but as I have said before, correct according to
Javascript 2 spec, which says that static methods are not inherited.
Questions:
Perhaps the static method really should be on the class and not on
the mixin?
Or, if it is on the mixin, should you find all classes that use the
mixin and add the static method to them?
While you are there you could update to the 'approved' names:
trait -> mixin
inherits -> with
More information about the Laszlo-dev
mailing list