X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffx.js;h=67af1305db7f2952b95e284e4893df4ff409dced;hb=9c2c47d7c021d1d944798642d0e7d51423af6bd8;hp=87af7e0cb08c26f927c2ff552bfe0497def852a1;hpb=8ece9e8fb1278e4e62aeb8896979b2a6815dcb3e;p=jquery.git 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(){