diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-07-12 15:14:01 +0000 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-07-12 15:14:01 +0000 |
commit | d857315967a1cc07b73924bbdf2eb12f4f910c45 (patch) | |
tree | 3fc74e29ff61cc0e78f257d5c92cce1dda7a742b /src/data.js | |
parent | 89b4bc53ca0ca3d4e5c80b94ce92b09cc34af8ef (diff) | |
download | jquery-d857315967a1cc07b73924bbdf2eb12f4f910c45.tar.gz jquery-d857315967a1cc07b73924bbdf2eb12f4f910c45.zip |
Add clearQueue for clearing non-fx queues
Diffstat (limited to 'src/data.js')
-rw-r--r-- | src/data.js | 5 |
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 |