diff options
author | David Serduke <davidserduke@gmail.com> | 2007-11-16 18:23:59 +0000 |
---|---|---|
committer | David Serduke <davidserduke@gmail.com> | 2007-11-16 18:23:59 +0000 |
commit | 0a0990485e5c1fd4b4fdcce7f7723d9e0a9dd16d (patch) | |
tree | 9882fa55805a16e9e9dbb6699aa5a999aad39aa8 /src/fx.js | |
parent | 1d299d375b6d97d65559286d914df2d5a77949db (diff) | |
download | jquery-0a0990485e5c1fd4b4fdcce7f7723d9e0a9dd16d.tar.gz jquery-0a0990485e5c1fd4b4fdcce7f7723d9e0a9dd16d.zip |
Fixed #1822 bug where queue() didn't always default to type 'fx'.
Diffstat (limited to 'src/fx.js')
-rw-r--r-- | src/fx.js | 4 |
1 files changed, 3 insertions, 1 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 ) |