Commit 41590d37 authored by John Resig's avatar John Resig

Fixed some bugs in how .queue() works (it wasn't handling the argument order correctly).

parent 500ff12d
......@@ -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(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment