Changeset 5570
- Timestamp:
- 05/12/08 19:45:02 (7 months ago)
- Location:
- trunk/jquery/src
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/jquery/src/event.js
r5499 r5570 496 496 // Execute all of them 497 497 jQuery.each( jQuery.readyList, function(){ 498 this. apply( document );498 this.call( document ); 499 499 }); 500 500 -
trunk/jquery/src/fx.js
r5378 r5570 82 82 for ( p in prop ) { 83 83 if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden ) 84 return jQuery.isFunction(opt.complete) && opt.complete. apply(this);84 return jQuery.isFunction(opt.complete) && opt.complete.call(this); 85 85 86 86 if ( p == "height" || p == "width" ) { … … 149 149 150 150 if ( queue(this, type).length == 1 ) 151 fn. apply(this);151 fn.call(this); 152 152 } 153 153 }); … … 203 203 204 204 if ( q.length ) 205 q[0]. apply( this );205 q[0].call( this ); 206 206 }); 207 207 }; … … 227 227 jQuery(this).dequeue(); 228 228 if ( jQuery.isFunction( opt.old ) ) 229 opt.old. apply( this );229 opt.old.call( this ); 230 230 }; 231 231 … … 261 261 update: function(){ 262 262 if ( this.options.step ) 263 this.options.step. apply( this.elem, [ this.now, this ]);263 this.options.step.call( this.elem, this.now, this ); 264 264 265 265 (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this ); … … 382 382 if ( done && jQuery.isFunction( this.options.complete ) ) 383 383 // Execute the complete function 384 this.options.complete. apply( this.elem );384 this.options.complete.call( this.elem ); 385 385 386 386 return false;
