mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 03:35:16 -05:00
Effects: Finish should call progress
(cherry-picked from 3dd3d1357d)
Fixes gh-2283
Closes gh-2292
This commit is contained in:
committed by
Michał Gołębiowski
parent
dc76dca295
commit
f71e32d4b4
1
src/effects.js
vendored
1
src/effects.js
vendored
@@ -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 ] );
|
||||
|
||||
Reference in New Issue
Block a user