3 ms·
Just for clarification: Older versions of IE have two garbage collectors, one for DOM elements and one for JavaScript. The issues arise when the circular depend
by jdmichal 13y ago
Just for clarification: Older versions of IE have two garbage collectors, one for DOM elements and one for JavaScript. The issues arise when the circular dependency loops across these two collectors, so that the DOM collector is waiting for the JavaScript object to free and vice versa.
Unfortunately, this is really easy to do with closures. For instance, patterns like this are pretty common:
var domElement = $("#someId");
domElement.click(function () {
domElement.style.color = "red";
});