diff options
author | timmywil <tim.willison@thisismedium.com> | 2011-05-11 14:31:42 -0400 |
---|---|---|
committer | timmywil <tim.willison@thisismedium.com> | 2011-05-13 11:56:55 -0400 |
commit | 3486365062cdc7e8598cea238e67aafa33af7dce (patch) | |
tree | b534f651a70d6da87d01bb898a38d1ee0eee8ac2 /src | |
parent | 0f81cf89916262a3b5a0f85a33638edea562ca1f (diff) | |
download | jquery-3486365062cdc7e8598cea238e67aafa33af7dce.tar.gz jquery-3486365062cdc7e8598cea238e67aafa33af7dce.zip |
Animation callbacks keep their place in the queue stack. Fixes #9220.
Diffstat (limited to 'src')
-rw-r--r-- | src/effects.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/effects.js b/src/effects.js index 38d5a0119..e179c3e3c 100644 --- a/src/effects.js +++ b/src/effects.js @@ -330,15 +330,15 @@ jQuery.extend({ // Queueing opt.old = opt.complete; opt.complete = function( noUnmark ) { + if ( jQuery.isFunction( opt.old ) ) { + opt.old.call( this ); + } + if ( opt.queue !== false ) { jQuery.dequeue( this ); } else if ( noUnmark !== false ) { jQuery._unmark( this ); } - - if ( jQuery.isFunction( opt.old ) ) { - opt.old.call( this ); - } }; return opt; |