Commit 304dd618 authored by Sahab Yazdani's avatar Sahab Yazdani Committed by John Resig

Landing pull request 370. Fixes #8763.

More Details:
 - https://github.com/jquery/jquery/pull/370
 - https://github.com/jquery/jquery/issues/8763
parent 38de389a
......@@ -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
......
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