Skip to content

Commit 657b197

Browse files
author
timmywil
committed
Null created elements in support to avoid leaks in IE. Tested IE6-8. Leaks are contained to the byte. Fixes #9294.
1 parent a5396bd commit 657b197

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/support.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ jQuery.support = (function() {
245245
}
246246
}
247247

248+
// Null connected elements to avoid leaks in IE
249+
marginDiv = div = input = null;
250+
248251
return support;
249252
})();
250253

0 commit comments

Comments
 (0)