Adds missing 'hide' to binded methods list in Tour #326
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Unless
hide
is part of the binded methods list the scope later on in Tour#hide (https://github.com/seppsepp/shepherd/blob/master/src/js/tour.js#L197-L203) is wrong and therethis
is for example<a class="shepherd-button " data-button-event="true">Proceed</a>
so thatthis.getCurrentStep()
must fail. Ifhide
is in the list then the scope is correct andthis
is of instanceTour
.(Without this change adding
action: tour.hide
to a button definition breaks an app.)