Last active
April 3, 2022 05:55
-
-
Save ascorbic-acid/8a15f45e190dd48176e77293eebd07be to your computer and use it in GitHub Desktop.
jQuery Log all events
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
var temp = $.event.dispatch; | |
$.event.dispatch = function(event, arg2, arg3){ | |
// the event that is passed is the native event, if you want the jquery | |
// event, you need the fixed event. | |
console.log(jQuery.event.fix( event ), arg2, arg3); | |
temp.call(this, event, arg2, arg3); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment