]> source.dussan.org Git - jquery.git/commitdiff
Cleanup spacing in css.js. Fixes #10601
authorRick Waldron <waldron.rick@gmail.com>
Thu, 27 Oct 2011 19:29:09 +0000 (15:29 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Thu, 27 Oct 2011 19:29:09 +0000 (15:29 -0400)
src/css.js

index ba645fb463005036b9baf25aa1026505bef23dc1..0735fc3d85d04a3238879cdae2d534c4da7e2072 100644 (file)
@@ -307,7 +307,7 @@ if ( document.documentElement.currentStyle ) {
                        if ( rsLeft ) {
                                elem.runtimeStyle.left = elem.currentStyle.left;
                        }
-                       style.left = name === "fontSize" ? "1em" : (ret || 0);
+                       style.left = name === "fontSize" ? "1em" : ( ret || 0 );
                        ret = style.pixelLeft + "px";
 
                        // Revert the changed values
@@ -375,7 +375,7 @@ if ( jQuery.expr && jQuery.expr.filters ) {
                var width = elem.offsetWidth,
                        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 ) {