MCPcopy Create free account
hub / github.com/marijnh/Eloquent-JavaScript / clearEvents

Method clearEvents

src/client/sandbox.mjs:260–265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258 }
259
260 clearEvents() {
261 while (this.timeouts.length) this.win.clearTimeout(this.timeouts.pop())
262 while (this.intervals.length) this.win.clearInterval(this.intervals.pop())
263 while (this.frames.length) this.win.cancelAnimationFrame(this.frames.pop())
264 this.timeouts.length = this.intervals.length = this.frames.length = this.framePos = 0
265 }
266}
267
268function preprocess(code, sandbox) {

Callers 1

setHTMLMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected