From: Jörn Zaefferer Date: Sun, 14 Jan 2007 13:48:41 +0000 (+0000) Subject: Fix wrong type check in jQuery.prop X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=213118c81e3c441a99f2e0d3b8753538ffbc9b46;hp=e1e631a04440c0d9ab6580ea1593286072fa7ef5;p=jquery.git Fix wrong type check in jQuery.prop --- diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 8c27b42..618cada 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1261,7 +1261,7 @@ jQuery.extend({ return value.call( elem ); // Handle passing in a number to a CSS property - if ( value.constructor == Number && type == "css" ) + if ( value.constructor == Number && type == "curCSS" ) return value + "px"; return value;