X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fdata.js;h=8c79c214476ae1db5bda4b8bbf50c1d81c1bcba1;hb=e8eff25f3b6d9a0c03f6581089406cebcc86aa34;hp=ac069ceea593910ee60e0c3178f88e345c4c68c0;hpb=f8ef75eb9124ce924be5fb521c783efd5c996e33;p=jquery.git diff --git a/src/data.js b/src/data.js index ac069ce..8c79c21 100644 --- a/src/data.js +++ b/src/data.js @@ -92,8 +92,8 @@ jQuery.extend({ fn = queue[0]; if( fn !== undefined ) - fn.call(elem); - } + 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, [] ); } }); \ No newline at end of file