Use .destroy(); With Waypoints But Only On One Object
I have two different objects I'm using to trigger two different Waypoints events which then trigger Velocity.js (a fade in/out library). The first even (the one on secondary) shoul
Solution 1:
The page you shared doesn't appear to contain the destroy calls you reference in your code sample, but if they were included you should have seen an uncaught TypeError "undefined is not a function". The reason: You're calling $(this).destroy()
instead of this.destroy()
. destroy
is a function on a Waypoint instance. When you try to call it on a jQuery object, which $()
will return, it should have blown up on you in the console because destroy is not a jQuery method. Am I missing something here?
Post a Comment for "Use .destroy(); With Waypoints But Only On One Object"