Skip to content

Commit 6ae2b37

Browse files
committed
Fix wrong function name in chapter 14
1 parent b8ac2a4 commit 6ae2b37

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

14_event.txt

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

715-
The `clearAnimationFrame` work in the same way as
715+
The `cancelAnimationFrame` function works in the same way as
716716
`clearTimeout`—calling it on a value returned by
717-
`requestAnimationFrame` will cancel that frame (assuming it wasn't
718-
already called).
717+
`requestAnimationFrame` will cancel that frame (assuming it hasn't
718+
already been called).
719719

720720
A similar set of functions, `setInterval` and `clearInterval` are used
721721
to set timers that should repeat every X milliseconds.

0 commit comments

Comments
 (0)