Add clearQueue for clearing non-fx queues

This commit is contained in:
Yehuda Katz 2009-07-12 15:14:01 +00:00
parent 89b4bc53ca
commit d857315967
2 changed files with 101 additions and 2 deletions

View file

@ -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, [] );
}
});