Okay, there really seems to be a bug with events declared with DeclareEvent not getting inherited by
child classes in the DHTML runtime.
For example, if I have LzDataNode which has this declaration
DeclareEvent(LzDataNode.prototype, 'onparentNode' );
And then LzDataElement is defined as
LzDataElement = makeLFCConstructor(LzDataNode);
but if I instantiate an LzDataElement, using LzFactory.create (), it's onparentNode is null instead of an LzDeclaredEvent
So who is responsible for making sure that default properties of the superclass are visible in an instance of the subclass?
The question I have is how should this be getting inherited, and is there something magic in the __construct
constructor function that I should be calling to make this happen? Is it required to call
this.callInherited( '__construct', arguments.callee)
That doesn't seem to make any difference in the inheritance of the onparentNode property ..
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]
_______________________________________________ Laszlo-dev mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
