Commit d5897098 authored by timmywil's avatar timmywil

Move clearing the support vars to before the offset doc ready call in case the...

Move clearing the support vars to before the offset doc ready call in case the offset tests are run synchronously. Fixes #10737.

- Adding a test for this would probably slow the manipulation tests significantly, but it's simple enough.
parent e977a85b
...@@ -253,6 +253,12 @@ jQuery.support = (function() { ...@@ -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 // Run fixed position tests at doc ready to avoid a crash
// related to the invisible body in IE8 // related to the invisible body in IE8
jQuery(function() { jQuery(function() {
...@@ -311,12 +317,6 @@ jQuery.support = (function() { ...@@ -311,12 +317,6 @@ jQuery.support = (function() {
jQuery.extend( support, offsetSupport ); 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; return support;
})(); })();
......
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