Skip to content

Instantly share code, notes, and snippets.

@ZeeAgency
Created January 31, 2011 13:27
Show Gist options
  • Select an option

  • Save ZeeAgency/804022 to your computer and use it in GitHub Desktop.

Select an option

Save ZeeAgency/804022 to your computer and use it in GitHub Desktop.
Little ugly jQuery snippet detecting which nodes are listening to click events
var listenedNodes = [];
$('*').each(function() {
if($(this).data('events') && $(this).data('events').click && $(this).data('events').click.length) {
listenedNodes.push(this);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment