]> source.dussan.org Git - jquery.git/commitdiff
Bug #8635 Firefox uncaught exception 289/head
authorrwldrn <waldron.rick@gmail.com>
Mon, 28 Mar 2011 16:10:16 +0000 (12:10 -0400)
committerrwldrn <waldron.rick@gmail.com>
Mon, 28 Mar 2011 16:31:03 +0000 (12:31 -0400)
src/support.js

index 939ad4fcb55a457fe926552232ba2201b6dbf97b..095866b9c12022903f2ca73ad65432f8a4eaceef 100644 (file)
                if ( document.defaultView && document.defaultView.getComputedStyle ) {
                        div.style.width = "1px";
                        div.style.marginRight = "0";
-                       jQuery.support.reliableMarginRight = ( parseInt(document.defaultView.getComputedStyle(div).marginRight, 10) || 0 ) === 0;
+                       jQuery.support.reliableMarginRight = ( parseInt(document.defaultView.getComputedStyle(div, null).marginRight, 10) || 0 ) === 0;
                }
 
                body.removeChild( div ).style.display = "none";