Fix wrong type check in jQuery.prop

This commit is contained in:
Jörn Zaefferer 2007-01-14 13:48:41 +00:00
parent e1e631a044
commit 213118c81e

View file

@ -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;