waypoint.destroy()
Parameters
None.
Returns
The same Waypoint instance, allowing chained method calls.
Destroys the waypoint, preventing the handler from triggering ever again.
Scroll down to view examples.
Previous versions of Waypoints included an option, triggerOnce
, which would destroy a waypoint after the handler was triggered the first time. That option has been removed in favor of manually calling .destroy()
at the end of the handler.