mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fixed some bugs in how .queue() works (it wasn't handling the argument order correctly).
This commit is contained in:
parent
500ff12d5d
commit
41590d37e1
@ -129,12 +129,12 @@ jQuery.fn.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
queue: function(type, fn){
|
queue: function(type, fn){
|
||||||
if ( !fn ) {
|
if ( jQuery.isFunction(type) ) {
|
||||||
fn = type;
|
fn = type;
|
||||||
type = "fx";
|
type = "fx";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !arguments.length )
|
if ( !type || typeof type == "string" )
|
||||||
return queue( this[0], type );
|
return queue( this[0], type );
|
||||||
|
|
||||||
return this.each(function(){
|
return this.each(function(){
|
||||||
|
Loading…
Reference in New Issue
Block a user