Skip to content

Commit

Permalink
Multiple invoke fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Sep 13, 2024
1 parent 15b3d09 commit 56bf931
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,13 @@ export class App extends ServiceProvider {
}

protected invokeReady(): void {
for (const iterator of this.readyHandlers) {
this.invokeReadyHandler(iterator);
if (this.invokeReadyHandler) {
for (const iterator of this.readyHandlers) {
this.invokeReadyHandler(iterator);
}
}
this.readyHandlers = null;
}
}

// tslint:disable-next-line:ban-types
private invokeReadyHandler(f: () => any): void {
Expand Down

0 comments on commit 56bf931

Please sign in to comment.