why is my waypoints destroy function call throwing a error ?
hey guys , just had nothing much to do today , so decided to play around with waypoints.js(jQuery version) a bit ,
heres what i have so far :
The destroy waypoints has the following code attached to it as of now:
- $('.destroy').on('click' , function(){
- console.log(ways);
- ways.destroy();
- });
you'll see this code in the animation.js file .
when i click on the button , i get the following message :
- Uncaught TypeError: ways.destroy is not a function
Why ? , i cheked the waypoints.js file and it does indeed have a destroy function , also the waypoints , have a very
similar example for the destroy function , similar to the way i have used the destroy function .
What am i doing wrong ?