Effects: Finish should call progress

(cherry-picked from 3dd3d1357d)

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 dc76dca295
commit f71e32d4b4
7 changed files with 100 additions and 4 deletions

1
src/effects.js vendored
View File

@@ -346,6 +346,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 ] );