Fix #13939: Same-unit relative animations

(cherry picked from commit 00231d5d94)
This commit is contained in:
Richard Gibson
2013-05-26 16:02:32 -04:00
parent bd36ea22b6
commit 26980c6ec9
2 changed files with 41 additions and 1 deletions

2
src/effects.js vendored
View File

@@ -42,8 +42,8 @@ var fxNow, timerId,
// Update tween properties
if ( parts ) {
start = tween.start = +start || +target || 0;
tween.unit = unit;
tween.start = +start || +target || 0;
// If a +=/-= token was provided, we're doing a relative animation
tween.end = parts[ 1 ] ?
start + ( parts[ 1 ] + 1 ) * parts[ 2 ] :