Bug #8635 Firefox uncaught exception
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 939ad4f..095866b 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";