Skip to content

Instantly share code, notes, and snippets.

@amessinger
Created February 28, 2013 13:48
Show Gist options
  • Save amessinger/5056841 to your computer and use it in GitHub Desktop.
Save amessinger/5056841 to your computer and use it in GitHub Desktop.
Given an element, return all events and binded functions
$('#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