From 304dd618b7aa17158446bedd80af330375d8d4d4 Mon Sep 17 00:00:00 2001 From: Sahab Yazdani Date: Tue, 10 May 2011 11:20:22 -0400 Subject: [PATCH] Landing pull request 370. Fixes #8763. More Details: - https://github.com/jquery/jquery/pull/370 - https://github.com/jquery/jquery/issues/8763 --- src/support.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support.js b/src/support.js index 9a6a318d..9ffad280 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