Created
February 28, 2013 13:48
-
-
Save amessinger/5056841 to your computer and use it in GitHub Desktop.
Given an element, return all events and binded functions
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
$('#my-element').each( function() { | |
$.each($(this).data("events"), function(i, event) { | |
console.log(i); | |
$.each(event, function(j, h) { | |
console.log(h.handler); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment