Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Addressed issue causing the tour to break when a particular step is missing #24
Here is my suggested solution for issue #5
As I understood the issue is being caused since you were incrementing the index value when the user tries to go to the next popup. So when a particular step is missing, you are shifting to the DOM order which causes the tour popups to jump around without following a order.
What i have done is, I have taken all the steps indexes for the DOM into an array,
and if all the DOM elements are not provided with step, make the order default to follow DOM ordering
So when ever the user tries to go for the next popup, I check over the indexes array to find if the index we are trying is existing, if not, trying for the next available index
so it always will find the next available popup and go in a order rather than jumping around when a step is missing.