This commit is contained in:
zadam
2020-01-24 20:15:53 +01:00
parent 606d5afcab
commit ba500a3a80
7 changed files with 48 additions and 26 deletions

View File

@@ -253,7 +253,6 @@ class AppContext {
const tabContext = new TabContext(this, this.tabRow);
this.tabContexts.push(tabContext);
this.components.push(tabContext);
return tabContext;
}
@@ -321,9 +320,11 @@ class AppContext {
}
activateTab(tabId) {
const oldActiveTabId = this.activeTabId;
this.activeTabId = tabId;
this.trigger('activeTabChanged', { tabId: this.activeTabId });
this.trigger('activeTabChanged', { oldActiveTabId });
}
newTabListener() {