Created
May 27, 2011 19:03
-
-
Save ls-lukebowerman/995922 to your computer and use it in GitHub Desktop.
Nice trick to get list of JS events currently attached (good for auditing keyup/down)
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
// Requires jQuery | |
// KeyUP | |
$($(document).data("events").keyup).each(function(e){ console.log(this.data); }); | |
// KeyDOWN (MOS default) | |
$($(document).data("events").keydown).each(function(e){ console.log(this.data); }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment