Skip to content
Permalink
Browse files

Fix wrong type check in jQuery.prop

  • Loading branch information
jzaefferer committed Jan 14, 2007
1 parent e1e631a commit 213118c81e3c441a99f2e0d3b8753538ffbc9b46
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 213118c

Please sign in to comment.
You can’t perform that action at this time.