aboutsummaryrefslogtreecommitdiffstats
path: root/src/fx.js
diff options
context:
space:
mode:
authorDavid Serduke <davidserduke@gmail.com>2007-11-16 18:23:59 +0000
committerDavid Serduke <davidserduke@gmail.com>2007-11-16 18:23:59 +0000
commit0a0990485e5c1fd4b4fdcce7f7723d9e0a9dd16d (patch)
tree9882fa55805a16e9e9dbb6699aa5a999aad39aa8 /src/fx.js
parent1d299d375b6d97d65559286d914df2d5a77949db (diff)
downloadjquery-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.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fx.js b/src/fx.js
index 4ccb08911..711825f99 100644
--- a/src/fx.js
+++ b/src/fx.js
@@ -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 )