aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2011-10-27 15:29:09 -0400
committerRick Waldron <waldron.rick@gmail.com>2011-10-27 15:29:09 -0400
commit4fb7202e0a96c03d3571ffddc3c57481226b0ae0 (patch)
tree4b4fdc55d8141b478c11e6d169e38c2cc6cbf56b
parent9ea21faf8feaae78fa6391bb9fb777fd8c4b0d26 (diff)
downloadjquery-4fb7202e0a96c03d3571ffddc3c57481226b0ae0.tar.gz
jquery-4fb7202e0a96c03d3571ffddc3c57481226b0ae0.zip
Cleanup spacing in css.js. Fixes #10601
-rw-r--r--src/css.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/css.js b/src/css.js
index ba645fb46..0735fc3d8 100644
--- a/src/css.js
+++ b/src/css.js
@@ -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 ) {