mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
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 New Issue
Block a user