From: John Resig Date: Fri, 14 Sep 2007 17:47:01 +0000 (+0000) Subject: Fixed some bugs in how .queue() works (it wasn't handling the argument order correctly). X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=41590d37e109453ae58b38d4889031f4130e7f64;hp=500ff12d5da5e0d454663203101d65c9ed37cffa;p=jquery.git Fixed some bugs in how .queue() works (it wasn't handling the argument order correctly). --- diff --git a/src/fx.js b/src/fx.js index 87af7e0..67af130 100644 --- a/src/fx.js +++ b/src/fx.js @@ -129,12 +129,12 @@ jQuery.fn.extend({ }, queue: function(type, fn){ - if ( !fn ) { + if ( jQuery.isFunction(type) ) { fn = type; type = "fx"; } - if ( !arguments.length ) + if ( !type || typeof type == "string" ) return queue( this[0], type ); return this.each(function(){