Skip to content

Instantly share code, notes, and snippets.

@jhartikainen
Created March 28, 2013 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhartikainen/5262035 to your computer and use it in GitHub Desktop.
Save jhartikainen/5262035 to your computer and use it in GitHub Desktop.
var oldAddEventListener = window.addEventlistener;
var handlers = [];
window.addEventListener = function(event, handler, useCapture) {
handlers.push({ event: event, handler: handler });
oldAddEventListener.call(window, event, handler, useCapture);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment