X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Ffx.js;h=67af1305db7f2952b95e284e4893df4ff409dced;hb=d5f2129ac49e04185b49b7d5a548efa451d31dbc;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(){