add comment describing previous changes
This commit is contained in:
parent
7871f41e54
commit
7f91ffc5bd
1 changed files with 1 additions and 0 deletions
1
index.js
1
index.js
|
@ -59,6 +59,7 @@ class TabGroup extends EventEmitter {
|
|||
this.newTabId++;
|
||||
let tab = new Tab(this, id, args);
|
||||
this.tabs.push(tab);
|
||||
// Don't call tab.activate() before a tab is referenced in this.tabs
|
||||
if (args.active === true) {
|
||||
tab.activate();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue