Is there a way to destroy the joyride provided by Zurb Foundation problematically. I am trying to destroy the joyride like this
$('#joyride-list-location-creation').joyride('destroy');
But I am getting this error
Uncaught TypeError: $(...).joyride is not a function(…)
I'm using version 2.1 of joyride.
There is a 'destroy' function in the source code
For my usage, I needed to destroy it when it closed, so I added a call to destroy in the
postRideCallback.Like this: