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:
parent
2a0516d174
commit
d7bfdc14a8
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ let timerId = setTimeout(function request() {
|
||||||
delay *= 2;
|
delay *= 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
timerId = setTimeout(tick, delay);
|
timerId = setTimeout(request, delay);
|
||||||
|
|
||||||
}, delay);
|
}, delay);
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue