Bug #8635 Firefox uncaught exception
[jquery.git] / 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";