Skip to content

Instantly share code, notes, and snippets.

@DForshner
Created July 25, 2014 17:35
Show Gist options
  • Select an option

  • Save DForshner/0259049df36082fd6839 to your computer and use it in GitHub Desktop.

Select an option

Save DForshner/0259049df36082fd6839 to your computer and use it in GitHub Desktop.
Capture event triggers for logging/debugging
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