Created
March 11, 2016 14:59
-
-
Save geekbrit/1dd09c8b1c239e04af2b to your computer and use it in GitHub Desktop.
View all Javascript setTimeout creation and fire events in the console window
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
window.originalSetTimeout = window.setTimeout; | |
window.setTimeout=function(func,delay) { | |
console.log("\n\nNew timer, delay:%s\nfunc:%s",delay, func); | |
return window.originalSetTimeout(function(e){console.log("\nTimerFired:%s",func);func(e)},delay); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment