Add window.originalSetTimeout

Signed-off-by: Corey Johnson & Nathan Sobo <cj+nathan@github.com>
This commit is contained in:
Corey Johnson & Nathan Sobo 2012-07-12 11:44:07 -07:00
parent ba2e85a548
commit 0d50066dad

View File

@ -112,6 +112,7 @@ window.resetTimeouts = ->
window.timeoutCount = 0
window.timeouts = []
window.originalSetTimeout = window.setTimeout
window.setTimeout = (callback, ms) ->
id = ++window.timeoutCount
window.timeouts.push([id, window.now + ms, callback])