Browse files

fixing a few more memory leaks in IE

  • Loading branch information...
1 parent 432ea4c commit 1bd4325cb979ed66588d6b3454b3eb4291a47151 @brandonaaron brandonaaron committed Apr 22, 2009
Showing with 4 additions and 1 deletion.
  1. +2 −0 src/offset.js
  2. +2 −1 src/support.js
View
2 src/offset.js
@@ -75,6 +75,8 @@ jQuery.offset = {
body.removeChild( container );
jQuery.offset.initialize = function(){};
+
+ body = container = innerDiv = checkDiv = table = td = null;
},
bodyOffset: function(body) {
View
3 src/support.js
@@ -88,10 +88,11 @@
document.body.appendChild( div );
jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
document.body.removeChild( div ).style.display = 'none';
+ div = null;
});
// release memory in IE
- div = null;
+ root = script = div = all = a = null;
})();
jQuery.props = {

0 comments on commit 1bd4325

Please sign in to comment.