Skip to content

Commit

Permalink
var => const change per review
Browse files Browse the repository at this point in the history
@geekjuice suggested declaring nextIndex as a const.
  • Loading branch information
mtgibbs committed Sep 24, 2015
1 parent 6803000 commit 7634a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/shepherd.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ class Tour extends Evented {
if (next) {
if (typeof next.options.showOn !== 'undefined' && !next.options.showOn()) {
const index = this.steps.indexOf(next);
var nextIndex = forward ? index + 1 : index - 1;
const nextIndex = forward ? index + 1 : index - 1;
this.show(nextIndex, forward);
} else {
this.trigger('show', {
Expand Down

0 comments on commit 7634a37

Please sign in to comment.