mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Add clearQueue for clearing non-fx queues
This commit is contained in:
@@ -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, [] );
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user