git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
jQuery.css() returns a string value - handle this properly in the animation code.
[jquery.git]
/
src
/
effects.js
diff --git
a/src/effects.js
b/src/effects.js
index
eeab9b7
..
9c8abe5
100644
(file)
--- a/
src/effects.js
+++ b/
src/effects.js
@@
-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;
},