Fix wrong type check in jQuery.prop
This commit is contained in:
parent
e1e631a044
commit
213118c81e
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue