mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
a200d6de83
Before, when using `requestAnimationFrame`, the emulator did not save the id returned by the browser. This broke the invariant of `run`, namely that on exit either `runAnimationFrame` or `runTimer` would be set. This meant that sometimes when the emulator restarted, there would be two callbacks to `requetsAnimationFrame` run on every frame. Now the id is saved correctly and the invariant of `run` is maintained.