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

Add error callback for showStep (Issue #274) #291

Merged
merged 8 commits into from
Jun 26, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/js/hopscotch.js
Original file line number Diff line number Diff line change
Expand Up @@ -1945,6 +1945,8 @@
this.showStep = function(stepNum) {
var step = currTour.steps[stepNum];
if(!utils.getStepTarget(step)) {
currStepNum = stepNum;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove this. IMO, if the step's target doesn't exist, we should leave the tour where it is. This also is probably the source of the build failure.

utils.invokeEventCallbacks('error');
return;
}

Expand Down