Effects: Finish should call progress

Fixes gh-2283
Closes gh-2292
This commit is contained in:
Thomas Tortorini
2015-05-11 01:39:26 +02:00
committed by Michał Gołębiowski
parent 98cee73244
commit 3dd3d1357d
7 changed files with 100 additions and 4 deletions

1
src/effects.js vendored
View File

@@ -345,6 +345,7 @@ function Animation( elem, properties, options ) {
// Resolve when we played the last frame; otherwise, reject
if ( gotoEnd ) {
deferred.notifyWith( elem, [ animation, 1, 0 ] );
deferred.resolveWith( elem, [ animation, gotoEnd ] );
} else {
deferred.rejectWith( elem, [ animation, gotoEnd ] );