diff options
author | timmywil <timmywillisn@gmail.com> | 2011-11-10 10:30:10 -0500 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2011-11-10 10:31:40 -0500 |
commit | d5897098510faba7f1c14fdd0ad961add42fb5c1 (patch) | |
tree | 0a600e75a247be439fea3a9dea691aaa3763c510 /src/support.js | |
parent | e977a85b87a7712215209e8481e51eda98058ab9 (diff) | |
download | jquery-d5897098510faba7f1c14fdd0ad961add42fb5c1.tar.gz jquery-d5897098510faba7f1c14fdd0ad961add42fb5c1.zip |
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.
Diffstat (limited to 'src/support.js')
-rw-r--r-- | src/support.js | 12 |
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; })(); |