Skip to content

Instantly share code, notes, and snippets.

@ascorbic-acid
Last active April 3, 2022 05:55
Show Gist options
  • Save ascorbic-acid/8a15f45e190dd48176e77293eebd07be to your computer and use it in GitHub Desktop.
Save ascorbic-acid/8a15f45e190dd48176e77293eebd07be to your computer and use it in GitHub Desktop.
jQuery Log all events
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