From: Sahab Yazdani Date: Tue, 10 May 2011 15:20:22 +0000 (-0400) Subject: Landing pull request 370. Fixes #8763. X-Git-Tag: 1.6.1rc1~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=304dd618b7aa17158446bedd80af330375d8d4d4;p=jquery.git Landing pull request 370. Fixes #8763. More Details: - https://github.com/jquery/jquery/pull/370 - https://github.com/jquery/jquery/issues/8763 --- diff --git a/src/support.js b/src/support.js index 9a6a318d1..9ffad2803 100644 --- a/src/support.js +++ b/src/support.js @@ -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