mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Add window.originalSetTimeout
Signed-off-by: Corey Johnson & Nathan Sobo <cj+nathan@github.com>
This commit is contained in:
parent
ba2e85a548
commit
0d50066dad
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user