Created
April 9, 2014 13:20
-
-
Save kirkonrails/10269631 to your computer and use it in GitHub Desktop.
Log all jQuery events to console via redfine jquery trigger
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 oldJQueryEventTrigger = jQuery.event.trigger; | |
jQuery.event.trigger = function( event, data, elem, onlyHandlers ) { | |
console.log( event, data, elem, onlyHandlers ); | |
oldJQueryEventTrigger( event, data, elem, onlyHandlers ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment