Added info to Readme about disableClickThroughHole(...).
The logic for hasNext() already exists in the next(), but by making it publicly accessable users of the ChainTourGuide can use hasNext() to determine if the end of the chain has been reached. This will allow performing some kind of action at the end of a chain of actions, like tour completed, don't run again settings.
hasNext()
function to ChainTourGuide.disableClickThroughHole(...)
.The logic for
hasNext()
already exists in thenext()
, but by making it publicly accessable users of the ChainTourGuide can usehasNext()
to determine if the end of the chain has been reached. This will allow performing some kind of action at the end of a chain of actions, liketour completed, don't run again
settings.