mootools/mootools-core — Issue #2308: Element.destroy can cause Closure Scope Storage to many empty items
Author: Dampsquid
Created: 2012-02-22 18:05:37+00:00
State: open

While trying to get my head arround the store and retrieve system I've come across an issue with the Element.destroy.

I'm using Request.HTML to get pages and am using the update property to replace the content in the pages main div.

My function to load the content into the content div first get all the all the children in the div then calls destroy on them to free off any resources.

function ClearElement( el )
{
var children = Array.from(el.childNodes);
for( var i=0; i