So, on Friday I asked this question and it was not well written, let me explain this in more detail:
So that may sound good, but I have this container in which I include the mousedown event, and all I want to do is switch it without destroying its properties.
If so:
$("#div").unbind("mousedown")
I thought I could move the event to a dom element that is not in use? And then just return it when I finish ...
So here's what happens: I have a plugin that just lets you call it Vinny now
$("#div").vinny(settings);
vinny has a mousedown event that I want to enable / disable using a trigger.
I thought I would have a function $ fn.disableMouseDown that could disable it, but was curious if their way to untie mouseDown on dom but not destroy it?
If you know a quick way to do this, help me! Thanks Winnie
Vinny source share