Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
a little cleanup from the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Koo committed Dec 1, 2013
1 parent 35a2b2d commit 4c025eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions js/hopscotch-0.1.2.js
Expand Up @@ -1612,8 +1612,7 @@
* @private
*/
changeStepCb = function(stepNum) {
var doShowFollowingStep,
nextStepNum = stepNum;
var doShowFollowingStep;

if (stepNum === -1) {
// Wasn't able to find a step with an existing element. End tour.
Expand All @@ -1631,7 +1630,7 @@

// If the state of the tour is updated in a callback, assume the client
// doesn't want to go to next step since they specifically updated.
if (nextStepNum !== currStepNum) {
if (stepNum !== currStepNum) {
return;
}

Expand Down

0 comments on commit 4c025eb

Please sign in to comment.