Added test for css(String, Function) and css(Object) where values are Functions;...
[jquery.git] / src / data.js
index ac069ce..8c79c21 100644 (file)
@@ -92,8 +92,8 @@ jQuery.extend({
                        fn = queue[0];\r
 \r
                if( fn !== undefined )\r
-                       fn.call(elem);\r
-       }\r
+                       fn.call(elem, function() { jQuery(elem).dequeue(type); });\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