Support for .foo(Function) and testing. TODO: More tests
[jquery.git] / src / data.js
index e429c0d..8c79c21 100644 (file)
@@ -93,7 +93,7 @@ jQuery.extend({
 \r
                if( fn !== undefined )\r
                        fn.call(elem, function() { jQuery(elem).dequeue(type); });\r
-       }\r
+       },\r
 });\r
 \r
 jQuery.fn.extend({\r
@@ -141,5 +141,8 @@ jQuery.fn.extend({
                return this.each(function(){\r
                        jQuery.dequeue( this, type );\r
                });\r
+       },\r
+       clearQueue: function(type){\r
+               return this.queue( type, [] );\r
        }\r
 });
\ No newline at end of file