aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/support.js')
-rw-r--r--src/support.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/support.js b/src/support.js
index df8e41f91..6fb67dbc7 100644
--- a/src/support.js
+++ b/src/support.js
@@ -253,6 +253,12 @@ jQuery.support = (function() {
}
}
+ testElement.innerHTML = "";
+ testElementParent.removeChild( testElement );
+
+ // Null connected elements to avoid leaks in IE
+ testElement = fragment = select = opt = body = marginDiv = div = input = null;
+
// Run fixed position tests at doc ready to avoid a crash
// related to the invisible body in IE8
jQuery(function() {
@@ -311,12 +317,6 @@ jQuery.support = (function() {
jQuery.extend( support, offsetSupport );
});
- testElement.innerHTML = "";
- testElementParent.removeChild( testElement );
-
- // Null connected elements to avoid leaks in IE
- testElement = fragment = select = opt = body = marginDiv = div = input = null;
-
return support;
})();