aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.js
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-07-12 15:14:01 +0000
committerYehuda Katz <wycats@gmail.com>2009-07-12 15:14:01 +0000
commitd857315967a1cc07b73924bbdf2eb12f4f910c45 (patch)
tree3fc74e29ff61cc0e78f257d5c92cce1dda7a742b /src/data.js
parent89b4bc53ca0ca3d4e5c80b94ce92b09cc34af8ef (diff)
downloadjquery-d857315967a1cc07b73924bbdf2eb12f4f910c45.tar.gz
jquery-d857315967a1cc07b73924bbdf2eb12f4f910c45.zip
Add clearQueue for clearing non-fx queues
Diffstat (limited to 'src/data.js')
-rw-r--r--src/data.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/data.js b/src/data.js
index e429c0de5..8c79c2144 100644
--- a/src/data.js
+++ b/src/data.js
@@ -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, [] );
}
}); \ No newline at end of file