Fixed #1822 bug where queue() didn't always default to type 'fx'.
This commit is contained in:
parent
1d299d375b
commit
0a0990485e
2 changed files with 21 additions and 2 deletions
|
@ -126,7 +126,7 @@ jQuery.fn.extend({
|
|||
},
|
||||
|
||||
queue: function(type, fn){
|
||||
if ( jQuery.isFunction(type) ) {
|
||||
if ( jQuery.isFunction(type) || ( type && type.constructor == Array )) {
|
||||
fn = type;
|
||||
type = "fx";
|
||||
}
|
||||
|
@ -162,6 +162,8 @@ var queue = function( elem, type, array ) {
|
|||
if ( !elem )
|
||||
return;
|
||||
|
||||
type = type || "fx";
|
||||
|
||||
var q = jQuery.data( elem, type + "queue" );
|
||||
|
||||
if ( !q || array )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue