Fix for #1823 bug in animate {queue:false} plus a unit test.

This commit is contained in:
David Serduke 2007-11-16 17:49:12 +00:00
parent ab96367f12
commit 1d299d375b
2 changed files with 25 additions and 1 deletions

View file

@ -201,7 +201,8 @@ jQuery.extend({
// Queueing
opt.old = opt.complete;
opt.complete = function(){
jQuery(this).dequeue();
if ( opt.queue !== false )
jQuery(this).dequeue();
if ( jQuery.isFunction( opt.old ) )
opt.old.apply( this );
};