Commit 4344d084 authored by jaubourg's avatar jaubourg

Fixes #8635 again (fix was lost in rewrite). Also removes unnecessary "manual" garbage collection.

parent f7f4ef91
...@@ -73,7 +73,7 @@ jQuery.support = (function() { ...@@ -73,7 +73,7 @@ jQuery.support = (function() {
// Make sure that a selected-by-default option has a working selected property. // Make sure that a selected-by-default option has a working selected property.
// (WebKit defaults to false instead of true, IE too, if it's in an optgroup) // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
optSelected: opt.selected, optSelected: opt.selected,
// Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
getSetAttribute: div.className !== "t", getSetAttribute: div.className !== "t",
...@@ -196,7 +196,7 @@ jQuery.support = (function() { ...@@ -196,7 +196,7 @@ jQuery.support = (function() {
marginDiv.style.marginRight = "0"; marginDiv.style.marginRight = "0";
div.appendChild( marginDiv ); div.appendChild( marginDiv );
support.reliableMarginRight = support.reliableMarginRight =
( parseInt( document.defaultView.getComputedStyle( marginDiv ).marginRight, 10 ) || 0 ) === 0; ( parseInt( document.defaultView.getComputedStyle( marginDiv, null ).marginRight, 10 ) || 0 ) === 0;
} }
// Remove the body element we added // Remove the body element we added
...@@ -224,9 +224,6 @@ jQuery.support = (function() { ...@@ -224,9 +224,6 @@ jQuery.support = (function() {
} }
} }
// release memory in IE
body = div = all = a = tds = undefined;
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