Created
March 29, 2018 17:54
-
-
Save marutypes/25ba5baa70a2175c42d99f26f0b08b0a to your computer and use it in GitHub Desktop.
TFW you're debugging event heavy turbograft flows and you just want to know wtf is happening
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
const de = document.dispatchEvent.bind(document); | |
document.dispatchEvent = (event) => { | |
console.log(event.type) | |
return de(event) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment