Landing pull request 370. Fixes #8763.

More Details:
 - https://github.com/jquery/jquery/pull/370
 - https://github.com/jquery/jquery/issues/8763
This commit is contained in:
Sahab Yazdani 2011-05-10 11:20:22 -04:00 committed by John Resig
parent 38de389a8e
commit 304dd618b7

View file

@ -206,7 +206,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, null ).marginRight, 10 ) || 0 ) === 0; ( parseInt( ( document.defaultView.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;
} }
// Remove the body element we added // Remove the body element we added