mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
jQuery.css() returns a string value - handle this properly in the animation code.
This commit is contained in:
2
src/effects.js
vendored
2
src/effects.js
vendored
@@ -321,7 +321,7 @@ jQuery.fx.prototype = {
|
||||
return this.elem[ this.prop ];
|
||||
}
|
||||
|
||||
var r = jQuery.css( this.elem, this.prop );
|
||||
var r = parseFloat( jQuery.css( this.elem, this.prop ), 10 );
|
||||
return r && r > -10000 ? r : 0;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user