|
|
|
|
|
by MatthewPhillips
4934 days ago
|
|
Is this really the most common style? It seems to me that this is more common: doAsyncCall(function onSuccess(result) {
// do things
}, function onError(err) {
// No need to check, it's really an error.
});
This is much cleaner and lets you reuse error handling functions. |
|