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

Commit

Permalink
fix cookie tour step overriding startTour param
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Koo committed Apr 15, 2013
1 parent a231d78 commit 8615858
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
9 changes: 4 additions & 5 deletions js/hopscotch-0.0.5.js
Expand Up @@ -1701,18 +1701,17 @@
loadTour.call(this, tour);
}

if (typeof stepNum !== undefinedStr) {
currStepNum = stepNum;
}

// If document isn't ready, wait for it to finish loading.
// (so that we can calculate positioning accurately)
if (!utils.documentIsReady()) {
waitingToStart = true;
return this;
}

if (currTour.id === cookieTourId && typeof cookieTourStep !== undefinedStr) {
if (typeof stepNum !== undefinedStr) {
currStepNum = stepNum;
}
else if (currTour.id === cookieTourId && typeof cookieTourStep !== undefinedStr) {
currStepNum = cookieTourStep;
}
else {
Expand Down
10 changes: 5 additions & 5 deletions js/hopscotch-0.0.5.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8615858

Please sign in to comment.