We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 980c716 + 1e2e3de commit 161e2d3Copy full SHA for 161e2d3
jquery.cyclify.js
@@ -94,13 +94,17 @@
94
};
95
96
Cycler.prototype.begin = function() {
97
- this._set_current_cycle(0);
98
- this.callback_if_necessary();
+ if (this.elements.current_index !== 0) {
+ this._set_current_cycle(0);
99
+ this.callback_if_necessary();
100
+ }
101
102
103
Cycler.prototype.end = function() {
- this._set_current_cycle(this.elements.max - 1);
104
+ if (this.elements.current_index !== (this.elements.max - 1)) {
105
+ this._set_current_cycle(this.elements.max - 1);
106
107
108
109
110
return new Cycler(this, options);
0 commit comments