From: Pascal B. <pa...@dy...> - 2000-11-07 17:26:47
|
"should it be posible to say: lyr.add(achild) then blyr.add(achild)?" Hmm, good question, I kinda like the fact of simple calling one method that makes the layer remove it self from the current parent, and be reassigned to another parent.. but it's not very logicall/clean to do :) It would fit into the "open" javascript language, but it could create some nasty problems in larger webapps hmm, not really an answer :-) Pascal Bestebroer pa...@dy... http://www.dynamic-core.net -----Oorspronkelijk bericht----- Van: dyn...@li... [mailto:dyn...@li...]Namens Robert Rainwater Verzonden: dinsdag 7 november 2000 15:37 Aan: mi...@pr... Onderwerp: Re: [Dynapi-Dev] serious bug with new release > In the addChildID() method of the DynLayer class, there is the > "Attempt to add ..." warning alert if you have a layer that has > already been added to the DynAPI.document, and then try to add that > same layer using the addChild() method to another layer. The only place that layers are added to the document.all[] array is in addChildID(). So, if you get an alert, it should mean that the layer has already been attached to another layer or document. So, should it be posible to say: lyr.add(achild) then blyr.add(achild)? \\Robert -- rra...@ya... _______________________________________________ Dynapi-Dev mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-dev |