Landing pull request 370. Fixes #8763.

More Details:
 - https://github.com/jquery/jquery/pull/370
 - https://github.com/jquery/jquery/issues/8763
1.7/enhancement_8685
Sahab Yazdani 2011-05-10 11:20:22 -04:00 committed by John Resig
parent 38de389a8e
commit 304dd618b7
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ jQuery.support = (function() {
marginDiv.style.marginRight = "0";
div.appendChild( marginDiv );
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