Fix dangling comma of death in data.js
[jquery.git] / src / data.js
index ac069ce..8714ab9 100644 (file)
@@ -92,7 +92,7 @@ jQuery.extend({
                        fn = queue[0];\r
 \r
                if( fn !== undefined )\r
-                       fn.call(elem);\r
+                       fn.call(elem, function() { jQuery(elem).dequeue(type); });\r
        }\r
 });\r
 \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