Add clearQueue for clearing non-fx queues
This commit is contained in:
parent
89b4bc53ca
commit
d857315967
2 changed files with 101 additions and 2 deletions
|
@ -93,7 +93,7 @@ jQuery.extend({
|
|||
|
||||
if( fn !== undefined )
|
||||
fn.call(elem, function() { jQuery(elem).dequeue(type); });
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
jQuery.fn.extend({
|
||||
|
@ -141,5 +141,8 @@ jQuery.fn.extend({
|
|||
return this.each(function(){
|
||||
jQuery.dequeue( this, type );
|
||||
});
|
||||
},
|
||||
clearQueue: function(type){
|
||||
return this.queue( type, [] );
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue