jquery event: adding some whitespaces to the last change.
This commit is contained in:
parent
c3cbc5bf98
commit
08836acc30
|
@ -443,13 +443,13 @@ jQuery.fn.extend({
|
||||||
|
|
||||||
return this.click(function(event) {
|
return this.click(function(event) {
|
||||||
// Figure out which function to execute
|
// Figure out which function to execute
|
||||||
this.lastToggle = (this.lastToggle||0) % args.length;
|
this.lastToggle = ( this.lastToggle || 0 ) % args.length;
|
||||||
|
|
||||||
// Make sure that clicks stop
|
// Make sure that clicks stop
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
// and execute the function
|
// and execute the function
|
||||||
return args[this.lastToggle++].apply( this, arguments ) || false;
|
return args[ this.lastToggle++ ].apply( this, arguments ) || false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue