From 7f91ffc5bdb70b652bf5b7e74799488bb9b61f39 Mon Sep 17 00:00:00 2001 From: Elton Chen-Yu Ho Date: Wed, 14 Jun 2017 22:51:10 +0800 Subject: [PATCH] add comment describing previous changes --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index e687848..9cb3540 100644 --- a/index.js +++ b/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(); }