$(element).data("events")
gives me a list of all the events for element
. Considering that I need to bind an event and have it fire before another one already bound to it, how can I accomplish that?
I have thought of unshifting an event to the list returned from $(element).data("events").myevent
, but I'm guessing that's not the right approach.
Thank you.