aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
authortimmywil <tim.willison@thisismedium.com>2011-05-25 14:30:46 -0400
committertimmywil <tim.willison@thisismedium.com>2011-05-25 14:30:46 -0400
commit657b197c193335899703fc158b153e2475cca539 (patch)
tree2274be9d0375f88c139313e796fee8a6aa67b440 /src/support.js
parenta5396bde7008470d22d562303ac6fbfbe8ebdaec (diff)
downloadjquery-657b197c193335899703fc158b153e2475cca539.tar.gz
jquery-657b197c193335899703fc158b153e2475cca539.zip
Null created elements in support to avoid leaks in IE. Tested IE6-8. Leaks are contained to the byte. Fixes #9294.
Diffstat (limited to 'src/support.js')
-rw-r--r--src/support.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/support.js b/src/support.js
index e0474e763..b500f9009 100644
--- a/src/support.js
+++ b/src/support.js
@@ -245,6 +245,9 @@ jQuery.support = (function() {
}
}
+ // Null connected elements to avoid leaks in IE
+ marginDiv = div = input = null;
+
return support;
})();