Created
July 25, 2014 17:35
-
-
Save DForshner/0259049df36082fd6839 to your computer and use it in GitHub Desktop.
Capture event triggers for logging/debugging
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 originalTrigger = App.events.trigger; | |
| App.events.trigger = function () { | |
| console.log("Event Triggered:"); | |
| console.log(arguments); | |
| originalTrigger.apply(this, Array.prototype.slice.call(arguments)); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment