Skip to main content

Bug Tracker

Side navigation

Ticket #1822: 1822.diff
File 1822.diff, 0.5 KB (added by davidserduke, October 18, 2007 09:48PM UTC)
Index: src/fx.js
===================================================================
--- src/fx.js	(revision 3685)
+++ src/fx.js	(working copy)
@@ -126,7 +126,7 @@
 	},
 	
 	queue: function(type, fn){
-		if ( jQuery.isFunction(type) ) {
+		if ( jQuery.isFunction(type) || type instanceof Array ) {
 			fn = type;
 			type = "fx";
 		}
@@ -162,6 +162,8 @@
 	if ( !elem )
 		return;
 
+	type = type || "fx";
+
 	var q = jQuery.data( elem, type + "queue" );
 
 	if ( !q || array )

Download in other formats:

Original Format