Commit 1bd4325c authored by Brandon Aaron's avatar Brandon Aaron

fixing a few more memory leaks in IE

parent 432ea4ca
...@@ -75,6 +75,8 @@ jQuery.offset = { ...@@ -75,6 +75,8 @@ jQuery.offset = {
body.removeChild( container ); body.removeChild( container );
jQuery.offset.initialize = function(){}; jQuery.offset.initialize = function(){};
body = container = innerDiv = checkDiv = table = td = null;
}, },
bodyOffset: function(body) { bodyOffset: function(body) {
......
...@@ -88,10 +88,11 @@ ...@@ -88,10 +88,11 @@
document.body.appendChild( div ); document.body.appendChild( div );
jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2; jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
document.body.removeChild( div ).style.display = 'none'; document.body.removeChild( div ).style.display = 'none';
div = null;
}); });
// release memory in IE // release memory in IE
div = null; root = script = div = all = a = null;
})(); })();
jQuery.props = { jQuery.props = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment