I have a button that has a click event that runs trip.start() but the thing is, if a user closes with the trip-close 'x' before reaching the dismiss label, the button I use will start the trip from that same block and won't restart the entire trip.
i tried adding a function to the click event like this:
I have a button that has a click event that runs trip.start() but the thing is, if a user closes with the trip-close 'x' before reaching the dismiss label, the button I use will start the trip from that same block and won't restart the entire trip.
i tried adding a function to the click event like this:
but no luck, I actually viewed 'trip.settings.tripIndex' in the console right before I set it to 0 and saw it was already 0…
I thought about may be trying to do that with onTripClose, but not sure how to pass it in, as it only take : tripIndex and tripObject.
and ideas?