()
| 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 | |
| 268 | function preprocess(code, sandbox) { |