Fix #13183: Wrong animation initial value calc. Close gh-1136.

This commit is contained in:
Mike Sherov
2013-01-15 23:09:35 -05:00
committed by Dave Methvin
parent 79feac9584
commit 65df32dc21
3 changed files with 27 additions and 10 deletions

View File

@@ -265,7 +265,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;
}