From 7dd4b2aa989123030141fbd593926c7dd2151035 Mon Sep 17 00:00:00 2001 From: Thomas Brouard Date: Wed, 2 Nov 2016 21:05:43 +0100 Subject: [PATCH] Fix previous tab not activated on close --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 7e736df..88fcaa0 100644 --- a/index.js +++ b/index.js @@ -223,10 +223,10 @@ class Tab extends EventEmitter { let tabGroup = this.tabGroup; tabGroup.tabContainer.removeChild(this.tab); tabGroup.viewContainer.removeChild(this.webview); + let activeTab = this.tabGroup.getActiveTab(); TabGroupPrivate.removeTab.bind(tabGroup)(this, true); this.emit("close", this); - let activeTab = this.tabGroup.getActiveTab(); if (activeTab.id === this.id) { TabGroupPrivate.activateRecentTab.bind(tabGroup)(); }