Unbinding a jQuery UI effect
in Using jQuery UI
•
11 years ago
I have a unique situation with regards to the jQueryUI ‘transfer’ effect. Basically the problem is this:
I have two panels in which I use a click event to move items from one to another, and use the transfer effect to display the transition between the panels. Because I am dynamically moving DIV’s from one panel to another I am using the live event handler to bind click events.
My problem is that if I click previous and then click next in my wizard (which is what I am building) the ‘transfer’ effect runs twice. If I click previous and next again the effect then runs 3 times.
In order to ensure that other events bound using the live() method do not bind more than once, one can use the unbind method to ensure that all handlers are removed, is there a way to unbind / destroy an effect?
Thanks for any help you can offer
1