Changeset 5350
- Timestamp:
- 04/29/08 21:35:35 (7 months ago)
- Location:
- trunk/jquery/src
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/jquery/src/event.js
r5344 r5350 444 444 return this.click(function(event) { 445 445 // Figure out which function to execute 446 this.lastToggle = 0 == this.lastToggle ? 1 : 0;446 this.lastToggle = (this.lastToggle||0) % args.length; 447 447 448 448 // Make sure that clicks stop … … 450 450 451 451 // and execute the function 452 return args[this.lastToggle ].apply( this, arguments ) || false;452 return args[this.lastToggle++].apply( this, arguments ) || false; 453 453 }); 454 454 }, -
trunk/jquery/src/fx.js
r5317 r5350 36 36 toggle: function( fn, fn2 ){ 37 37 return jQuery.isFunction(fn) && jQuery.isFunction(fn2) ? 38 this._toggle ( fn, fn2) :38 this._toggle.apply( this, arguments ) : 39 39 fn ? 40 40 this.animate({
