Merge pull request #2249 from vsemozhetbyt/patch-9

Fix semicolons in 1.11.1 (Introduction: callbacks)
This commit is contained in:
Ilya Kantor 2020-11-09 13:28:19 +03:00 committed by GitHub
commit 9e99c367ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,7 +146,7 @@ loadScript('/my/script.js', function(script) {
});
*/!*
})
});
});
```
@ -223,7 +223,7 @@ loadScript('1.js', function(error, script) {
});
}
})
});
}
});
```
@ -256,7 +256,7 @@ loadScript('1.js', function(error, script) {
}
});
}
})
});
}
});
-->
@ -296,7 +296,7 @@ function step3(error, script) {
} else {
// ...continue after all scripts are loaded (*)
}
};
}
```
See? It does the same, and there's no deep nesting now because we made every action a separate top-level function.