]> source.dussan.org Git - jquery.git/commitdiff
Landing pull request 370. Fixes #8763.
authorSahab Yazdani <sahab.yazdani+github@gmail.com>
Tue, 10 May 2011 15:20:22 +0000 (11:20 -0400)
committerJohn Resig <jeresig@gmail.com>
Tue, 10 May 2011 15:20:22 +0000 (11:20 -0400)
More Details:
 - https://github.com/jquery/jquery/pull/370
 - https://github.com/jquery/jquery/issues/8763

src/support.js

index 9a6a318d19c34eabc735aa19e0af00ae093369d5..9ffad2803115fccce45bc311dc47ebd84e1e0613 100644 (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