Fix semicolons in 1.11.1 (Introduction: callbacks)
This commit is contained in:
parent
f2078b1d80
commit
2f822c8ec3
1 changed files with 4 additions and 4 deletions
|
@ -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 {
|
} else {
|
||||||
// ...continue after all scripts are loaded (*)
|
// ...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.
|
See? It does the same, and there's no deep nesting now because we made every action a separate top-level function.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue