Re: [Dynapi-Dev] double-precreation

2001-09-20 Thread Michael Bürge
> BUT when I try and do certain things in the > constructor instead of precreate, they simply don't work. could you post an example where it doesn't work? ___ Dynapi-Dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dyna

Re: [Dynapi-Dev] double-precreation

2001-09-20 Thread Adrian Kubala
Michael Buerge ([EMAIL PROTECTED]) wrote: > to avoid the problem described above i would suggest to move the > flagPrecreate call outside out the create-methode into the addChild-method. Unfortunately this isn't a complete solution because the children will never get precreated if the parent isn'

Re: [Dynapi-Dev] double-precreation

2001-09-20 Thread Michael Buerge
> 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;

Re: [Dynapi-Dev] double-precreation

2001-09-20 Thread Michael Buerge
am 20.9.2001 1:39 Uhr schrieb Adrian Kubala unter [EMAIL PROTECTED]: > I've noticed that objects in a tree are precreated twice. First > flagPrecreate traverses the tree doing precreation in post-order, then > create does the same thing indirectly. Normally this doesn't cause > problems but I'm w

[Dynapi-Dev] double-precreation

2001-09-19 Thread Adrian Kubala
I've noticed that objects in a tree are precreated twice. First flagPrecreate traverses the tree doing precreation in post-order, then create does the same thing indirectly. Normally this doesn't cause problems but I'm working on a tree widget and it's causing wierd problems. So, can somebody tel