Created
June 27, 2018 14:32
-
-
Save ldmarz/814487dbc004a86e3c2a5010a5abb137 to your computer and use it in GitHub Desktop.
Get list of events bound on an element with jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.info($._data($(document)[0], 'events')); | |
// Example output | |
// { | |
// "mousedown": [ | |
// { | |
// "type": "mousedown", | |
// "origType": "mousedown", | |
// "guid": 1, | |
// "namespace": "" | |
// } | |
// ], | |
// "mousemove": [ | |
// { | |
// "type": "mousemove", | |
// "origType": "mousemove", | |
// "guid": 2, | |
// "namespace": "" | |
// } | |
// ] | |
// } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment