> to avoid the problem described above i would suggest to move the
> flagPrecreate call outside out the create-methode into the addChild-method.
> addChild then would look like this:
>
> DynObject.prototype.addChild = function(c) {
> if(c.isChild) c.parent.removeChild(c);
> c.isChild = true;
> c.parent = this;
> if(this.created) {
> this.flagPrecreate();
> c.create();
> }
> this.children[this.children.length] = c;
> return c;
> };
there's an error in the above code from my last post.
the line
this.flagPrecreate();
should read
c.flagPrecreate();
the reason for this should be obvious.
--
Michael Buerge
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-dev