Skip to content

Commit 4ef49e6

Browse files
committed
fix(startup): start() incorrectly returns a resolved promise
1 parent 964e398 commit 4ef49e6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/aurelia.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,12 @@ export class Aurelia {
6969
* @return Returns a Promise with the started Aurelia instance.
7070
*/
7171
start(): Promise<Aurelia> {
72-
if (this.started) {
73-
return Promise.resolve(this);
72+
if (this._started) {
73+
return this._started;
7474
}
7575

76-
this.started = true;
7776
this.logger.info('Aurelia Starting');
78-
79-
return this.use.apply().then(() => {
77+
return this._started = this.use.apply().then(() => {
8078
preventActionlessFormSubmit();
8179

8280
if (!this.container.hasResolver(BindingLanguage)) {

0 commit comments

Comments
 (0)