From 2562ab4878650deeed3801f2ff638ff91e36ed55 Mon Sep 17 00:00:00 2001 From: atomiks Date: Sun, 25 Feb 2018 14:32:23 +1100 Subject: [PATCH] Update recordFrames.md --- snippets/recordFrames.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/snippets/recordFrames.md b/snippets/recordFrames.md index 17a71300c..938058ae9 100644 --- a/snippets/recordFrames.md +++ b/snippets/recordFrames.md @@ -2,9 +2,8 @@ Invokes the provided callback on each animation frame. -Use recursion. Provided that `running` is `true`, continue invoking `window.requestAnimationFrame`. Return an object -with two methods `start` and `stop` to allow manual control of the recording. Omit the second argument, `autoStart`, -to implicitly call start when the function is invoked. +Use recursion. Provided that `running` is `true`, continue invoking `window.requestAnimationFrame()` and invoking the +provided callback. Return an object with two methods `start` and `stop` to allow manual control of the recording. Omit the second argument, `autoStart`, to implicitly call `start` when the function is invoked. ```js const recordFrames = (callback, autoStart = true) => {