[REF] move event_bus into utils, readd 2 functions

This commit is contained in:
Géry Debongnie
2021-11-13 16:21:01 +01:00
committed by Samuel Degueldre
parent d4c4fe853e
commit 63bfdfb8db
7 changed files with 33 additions and 10 deletions
+2 -1
View File
@@ -31,7 +31,7 @@ export class App<T extends typeof Component = any> extends TemplateSet {
this.props = props;
}
configure(config: Config) {
configure(config: Config): App<T> {
if (config.dev) {
this.dev = config.dev;
console.info(DEV_MSG);
@@ -46,6 +46,7 @@ export class App<T extends typeof Component = any> extends TemplateSet {
if (config.translatableAttributes) {
this.translatableAttributes = config.translatableAttributes;
}
return this;
}
mount(target: HTMLElement, options?: MountOptions): Promise<InstanceType<T>> {