aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2013-01-15 23:09:35 -0500
committerDave Methvin <dave.methvin@gmail.com>2013-01-15 23:34:22 -0500
commit10cc33e27beb56e41bea1274bc3b51b1c59af9af (patch)
treec0831dedb86da9f755073bfde5fb140e81bcd7bc /src/css.js
parent86278d40ae86ecd45786eebcb20b72564f2bb53f (diff)
downloadjquery-10cc33e27beb56e41bea1274bc3b51b1c59af9af.tar.gz
jquery-10cc33e27beb56e41bea1274bc3b51b1c59af9af.zip
Fix #13183: Wrong animation initial value calc. Ref gh-1136.
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css.js b/src/css.js
index 2a7172759..e2dcb5018 100644
--- a/src/css.js
+++ b/src/css.js
@@ -263,7 +263,7 @@ jQuery.extend({
}
// Return, converting to number if forced or a qualifier was provided and val looks numeric
- if ( extra ) {
+ if ( extra === "" || extra ) {
num = parseFloat( val );
return extra === true || jQuery.isNumeric( num ) ? num || 0 : val;
}