add comment describing previous changes

This commit is contained in:
Elton Chen-Yu Ho 2017-06-14 22:51:10 +08:00
parent 7871f41e54
commit 7f91ffc5bd

View file

@ -59,6 +59,7 @@ class TabGroup extends EventEmitter {
this.newTabId++; this.newTabId++;
let tab = new Tab(this, id, args); let tab = new Tab(this, id, args);
this.tabs.push(tab); this.tabs.push(tab);
// Don't call tab.activate() before a tab is referenced in this.tabs
if (args.active === true) { if (args.active === true) {
tab.activate(); tab.activate();
} }