},
queue: function(type, fn){
- if ( jQuery.isFunction(type) || ( type && type.constructor == Array )) {
+ if ( jQuery.isFunction(type) || jQuery.isArray(type) ) {
fn = type;
type = "fx";
}
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 );
easing: fn && easing || easing && easing.constructor != Function && easing
};
- opt.duration = typeof opt.duration == 'number' ? opt.duration :
+ opt.duration = jQuery.fx.off ? 0 : typeof opt.duration == 'number' ? opt.duration :
jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default;
// Queueing