Inner setTimeout() wrongly refering to tick()

In the 'Recursive setTimeout' section in the example for sending server request the inner setTimeout() refers to a non-existing tick() function. Should be the outer request() function.
This commit is contained in:
Johan Meester 2017-06-23 13:36:52 +02:00 committed by GitHub
parent 2a0516d174
commit d7bfdc14a8

View file

@ -172,7 +172,7 @@ let timerId = setTimeout(function request() {
delay *= 2; delay *= 2;
} }
timerId = setTimeout(tick, delay); timerId = setTimeout(request, delay);
}, delay); }, delay);
``` ```