How can I insert event handler to the top of the queue? If I use jquery.click()
or JavaScript addEventListener()
, I'll have a handler at the end of queue.
What is the best way for this?
I don't want to remove the existing handler, and then adds...
Asked
Active
Viewed 1,172 times
1

Brian Tompsett - 汤莱恩
- 5,753
- 72
- 57
- 129

Serg046
- 1,043
- 1
- 13
- 42
-
Could you give us an example of a case? – JJJ Feb 10 '15 at 21:32
-
look at this: http://stackoverflow.com/questions/290254/how-to-order-events-bound-with-jquery – lujcon Feb 10 '15 at 21:36
-
Here's a quick example: https://gist.github.com/ndugger/f0c11e4e6efa815221fb – ndugger Feb 10 '15 at 21:46