Skip to content

Commit

Permalink
Cycler: Fix autostart.
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Jan 25, 2013
1 parent 1208691 commit ac81fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cycler/cycler.js
Expand Up @@ -110,7 +110,7 @@
this.onpause = options.onpause || (function(){});
this.onstart = options.onstart || (function(){});
this.initial = (typeof options.initial === 'undefined') ? 0 : options.initial;
this.autostart = (typeof options.initial === 'undefined') ? true : options.autostart;
this.autostart = (typeof options.autostart === 'undefined') ? true : options.autostart;
this.list = list;
this.current = null;

Expand Down Expand Up @@ -143,7 +143,7 @@

// Delays the interval a bit
restart: function(silent) {
if (this._timer) this.pause(true).start(silent);
if (this.isStarted()) this.pause(true).start(silent);
return this;
},

Expand Down

0 comments on commit ac81fa5

Please sign in to comment.