Closed buguibu closed 11 years ago
Hey, thanks for reporting. I'll have a look on this.
Feel free to do a pull request in the future if you want to change stuff like this. It's way easier to handle :-).
Hey, I'm not sure if I get you right. If you try to call dragend on the same jquery object again it will not instantiate again, just update the settings.Your changes would be removing that feature. Can you show me a example how do you end up with duplicated handlers?
I'm sorry but i haven't enough time for giving you an example.
Sorry, I don't think that I can help you then without one :-/
I'm using this plugin in an iPad web where i have to maintain my DOM as small as possible, so i have an base object where i instantiate this plugin and other objects that extend this one and are created on demand to user actions, for this OO stuff i use Fiber.
So my base class looks like this:
My problem was that event handling was never cleaned, so per each object that instantiate i have my handlers duplicated.
I've modified this plugin in this way that works for me:
Hope it helps to someone.