Cleanup spacing in css.js. Fixes #10601

This commit is contained in:
Rick Waldron 2011-10-27 15:29:09 -04:00
parent 9ea21faf8f
commit 4fb7202e0a

View File

@ -307,7 +307,7 @@ if ( document.documentElement.currentStyle ) {
if ( rsLeft ) { if ( rsLeft ) {
elem.runtimeStyle.left = elem.currentStyle.left; elem.runtimeStyle.left = elem.currentStyle.left;
} }
style.left = name === "fontSize" ? "1em" : (ret || 0); style.left = name === "fontSize" ? "1em" : ( ret || 0 );
ret = style.pixelLeft + "px"; ret = style.pixelLeft + "px";
// Revert the changed values // Revert the changed values
@ -375,7 +375,7 @@ if ( jQuery.expr && jQuery.expr.filters ) {
var width = elem.offsetWidth, var width = elem.offsetWidth,
height = elem.offsetHeight; height = elem.offsetHeight;
return (width === 0 && height === 0) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none"); return ( width === 0 && height === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
}; };
jQuery.expr.filters.visible = function( elem ) { jQuery.expr.filters.visible = function( elem ) {