refactoring

This commit is contained in:
zadam
2020-02-07 21:43:02 +01:00
parent 14d6372bd8
commit 47f7f5f4d9
6 changed files with 13 additions and 10 deletions

View File

@@ -4,7 +4,10 @@ export default class Component {
/** @param {AppContext} appContext */
constructor(appContext) {
this.componentId = `comp-${this.constructor.name}-` + utils.randomString(6);
/** @type AppContext */
this.appContext = appContext;
/** @type TabManager */
this.tabManager = appContext.tabManager;
/** @type Component[] */
this.children = [];
this.initialized = Promise.resolve();