diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index e2a2a22c..004d6341 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1281,10 +1281,9 @@ jQuery.extend({ var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i; // Handle passing in a number to a CSS property - if ( value && value.constructor == Number && type == "curCSS" && !exclude.test(prop) ) - return value + "px"; - - return value; + return value && value.constructor == Number && type == "curCSS" && !exclude.test(prop) ? + value + "px" : + value; }, className: {