Animation callbacks keep their place in the queue stack. Fixes #9220.
This commit is contained in:
parent
0f81cf8991
commit
3486365062
2 changed files with 28 additions and 4 deletions
8
src/effects.js
vendored
8
src/effects.js
vendored
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue