Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit 35be1d7

Browse files
committed
fix closure pattern
1 parent dd48c1e commit 35be1d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,14 +1640,14 @@ fetch('/api/foo').then(fetchBar(fetchBuz(doSomething)));
16401640
function fetchBar(callback) {
16411641
return function(responseFoo) {
16421642
doSomething(responseFoo);
1643-
fetchBar(callback);
1643+
fetch('/api/bar').then(callback);
16441644
};
16451645
}
16461646

16471647
function fetchBuz(callback) {
16481648
return function(responseBar) {
16491649
doSomething(responseBar);
1650-
fetchBuz(callback);
1650+
fetch('/api/buz').then(callback);
16511651
};
16521652
}
16531653
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /