Bug #8635 Firefox uncaught exception

This commit is contained in:
rwldrn 2011-03-28 12:10:16 -04:00
parent ee81d4da92
commit ef0157d191

View File

@ -197,7 +197,7 @@
if ( document.defaultView && document.defaultView.getComputedStyle ) { if ( document.defaultView && document.defaultView.getComputedStyle ) {
div.style.width = "1px"; div.style.width = "1px";
div.style.marginRight = "0"; 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"; body.removeChild( div ).style.display = "none";