]> source.dussan.org Git - jquery.git/commitdiff
Fixed some bugs in how .queue() works (it wasn't handling the argument order correctly).
authorJohn Resig <jeresig@gmail.com>
Fri, 14 Sep 2007 17:47:01 +0000 (17:47 +0000)
committerJohn Resig <jeresig@gmail.com>
Fri, 14 Sep 2007 17:47:01 +0000 (17:47 +0000)
src/fx.js

index 87af7e0cb08c26f927c2ff552bfe0497def852a1..67af1305db7f2952b95e284e4893df4ff409dced 100644 (file)
--- 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(){