diff options
author | Sahab Yazdani <sahab.yazdani+github@gmail.com> | 2011-05-10 11:20:22 -0400 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2011-05-10 11:20:22 -0400 |
commit | 304dd618b7aa17158446bedd80af330375d8d4d4 (patch) | |
tree | 431fa692c80cd9e3d13ed8f08fe1c3fb0dca09d0 /src | |
parent | 38de389a8e675c0c2d1172dd23339325ae82539a (diff) | |
download | jquery-304dd618b7aa17158446bedd80af330375d8d4d4.tar.gz jquery-304dd618b7aa17158446bedd80af330375d8d4d4.zip |
Landing pull request 370. Fixes #8763.
More Details:
- https://github.com/jquery/jquery/pull/370
- https://github.com/jquery/jquery/issues/8763
Diffstat (limited to 'src')
-rw-r--r-- | src/support.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 |