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:
parent
38de389a8e
commit
304dd618b7
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue