clearQueue and next should now work with default fx on all browsers
This commit is contained in:
parent
7cfec99858
commit
89dc1e0143
2 changed files with 11 additions and 28 deletions
|
@ -130,11 +130,11 @@ jQuery.fn.extend({
|
|||
if ( data === undefined )
|
||||
return jQuery.queue( this[0], type );
|
||||
|
||||
return this.each(function(){
|
||||
return this.each(function(i, elem){
|
||||
var queue = jQuery.queue( this, type, data );
|
||||
|
||||
if( type == "fx" && queue.length == 1 )
|
||||
queue[0].call(this);
|
||||
if( type == "fx" && queue.length == 1 )
|
||||
queue[0].call(this, function() { jQuery(elem).dequeue(type); });
|
||||
});
|
||||
},
|
||||
dequeue: function(type){
|
||||
|
@ -143,6 +143,6 @@ jQuery.fn.extend({
|
|||
});
|
||||
},
|
||||
clearQueue: function(type){
|
||||
return this.queue( type, [] );
|
||||
return this.queue( type || "fx", [] );
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue