From: Pascal B. <pa...@dy...> - 2000-12-04 18:15:45
|
You should delete them yourself, I've did some tests with it, and it looks like the browsers actually stay more stable when you remove layers aswell :) Note to other developers: I think there should be some code in the DynAPI.unloadHandler that takes care of this..something like: DynAPI.document.deleteAllChildren() It will be hard to do it like this on frame-documents, but maybe we should keep track of them.. (My new code will do that, because DynDocuments (apart from main document) won't be added to the DynAPI automatically, they should be added using the DynAPI.addChild() code placing them all in the DynAPI.children array, and making it easier to delete all layers created) Pascal Bestebroer pa...@dy... http://www.dynamic-core.net > -----Oorspronkelijk bericht----- > Van: dyn...@li... > [mailto:dyn...@li...]Namens Martin Weinelt > Verzonden: maandag 4 december 2000 15:53 > Aan: dyn...@li... > Onderwerp: [Dynapi-Help] Delete DynLayers onUnload? > > > Hi, > > I am still excited about the DynAPI, thanks to all who contribute. > > Now that I have created some DynLayers, would I want to > deleteFromParent these layers as described in Pascals chapter on > 'Creating and deleting dynlayers' when the document unLoads? > > Or is this taken care of by some code in the API? > > Martin > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > |