jQuery.css() returns a string value - handle this properly in the animation code.
This commit is contained in:
parent
d1f3dc9a04
commit
192bab8ed6
2 changed files with 7 additions and 8 deletions
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;
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue