aboutsummaryrefslogtreecommitdiffstats
path: root/src/fx.js
diff options
context:
space:
mode:
authorAriel Flesler <aflesler@gmail.com>2008-10-29 02:01:22 +0000
committerAriel Flesler <aflesler@gmail.com>2008-10-29 02:01:22 +0000
commit325755d4b38e87b13f9c24a4c2991ec497552aad (patch)
treefc1cf37a3b86bedacd67897ceec2dc4e7677bfb6 /src/fx.js
parent77cfd696ec4180f346a8531ed2d6ae133044a27c (diff)
downloadjquery-325755d4b38e87b13f9c24a4c2991ec497552aad.tar.gz
jquery-325755d4b38e87b13f9c24a4c2991ec497552aad.zip
jquery core: closes #3541. Added isArray.
Diffstat (limited to 'src/fx.js')
-rw-r--r--src/fx.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fx.js b/src/fx.js
index 3fe936909..cbf067f37 100644
--- a/src/fx.js
+++ b/src/fx.js
@@ -112,7 +112,7 @@ jQuery.fn.extend({
},
queue: function(type, fn){
- if ( jQuery.isFunction(type) || ( type && type.constructor == Array )) {
+ if ( jQuery.isFunction(type) || jQuery.isArray(type) ) {
fn = type;
type = "fx";
}
@@ -121,7 +121,7 @@ jQuery.fn.extend({
return queue( this[0], type );
return this.each(function(){
- if ( fn.constructor == Array )
+ if ( jQuery.isArray(fn) )
queue(this, type, fn);
else {
queue(this, type).push( fn );