Skip to content

Commit e6b1730

Browse files
committed
Make chapter 15 more or less coherent
1 parent 1e262bf commit e6b1730

5 files changed

Lines changed: 322 additions & 56 deletions

File tree

14_event.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,11 @@ if (Math.random() < .5) { // 50% chance
712712
}
713713
----
714714

715+
The `clearAnimationFrame` work in the same way as
716+
`clearTimeout`—calling it on a value returned by
717+
`requestAnimationFrame` will cancel that frame (assuming it wasn't
718+
already called).
719+
715720
A similar set of functions, `setInterval` and `clearInterval` are used
716721
to set timers that should repeat every X milliseconds.
717722

0 commit comments

Comments
 (0)