From: Kevin <ke...@ke...> - 2003-04-06 15:52:47
|
Hello, If elements are removed and then some more are added we may have a memory leak. Using Mozilla and example: dynapi.api.dynlayer-destroy.html the elements aren't removed when the Destroy all link is clicked. Suggested fix dynlayer_base.js:p._remove -this.elm.innerHTML = ""; -this.elm.outerHTML = ""; +//this.elm.innerHTML = ""; +//this.elm.outerHTML = ""; +var p=this.parent.elm; +if(p) p.removeChild(this.elm); This seems to work fine in IE too.. NS4 has a recycled array in dynlayer_ns4.js:p._remove but I don't see the space reused. Do we have growing memory here and perhaps the Layer should be deleted rather than hidden? - Kevin. |