Created
January 31, 2011 13:27
-
-
Save ZeeAgency/804022 to your computer and use it in GitHub Desktop.
Little ugly jQuery snippet detecting which nodes are listening to click events
This file contains hidden or 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
| 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