if ( jQuery.readyList ) {
// Execute all of them
jQuery.each( jQuery.readyList, function(){
- this.apply( document );
+ this.call( document );
});
// Reset the list of functions
for ( p in prop ) {
if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden )
- return jQuery.isFunction(opt.complete) && opt.complete.apply(this);
+ return jQuery.isFunction(opt.complete) && opt.complete.call(this);
if ( p == "height" || p == "width" ) {
// Store display property
queue(this, type).push( fn );
if ( queue(this, type).length == 1 )
- fn.apply(this);
+ fn.call(this);
}
});
},
q.shift();
if ( q.length )
- q[0].apply( this );
+ q[0].call( this );
});
};
if ( opt.queue !== false )
jQuery(this).dequeue();
if ( jQuery.isFunction( opt.old ) )
- opt.old.apply( this );
+ opt.old.call( this );
};
return opt;
// Simple function for setting a style value
update: function(){
if ( this.options.step )
- this.options.step.apply( this.elem, [ this.now, this ] );
+ this.options.step.call( this.elem, this.now, this );
(jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
// If a callback was provided, execute it
if ( done && jQuery.isFunction( this.options.complete ) )
// Execute the complete function
- this.options.complete.apply( this.elem );
+ this.options.complete.call( this.elem );
return false;
} else {