Skip to content
Browse files

Landing pull request 370. Fixes #8763.

  • Loading branch information...
1 parent 38de389 commit 304dd618b7aa17158446bedd80af330375d8d4d4 @thegrandpoobah thegrandpoobah committed with jeresig May 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/support.js
View
2 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

0 comments on commit 304dd61

Please sign in to comment.
Something went wrong with that request. Please try again.