Fix .close() not working

This commit is contained in:
Thomas Brouard 2016-10-31 16:49:15 +01:00
parent b0e0ad1876
commit b57f1a8d75

View file

@ -151,10 +151,11 @@ class Tab {
}
close () {
this.tabContainer.removeChild(this.tab);
this.tabGroup.viewContainer.removeChild(this.webview);
this.tabGroup.removeTab(this);
this.tabGroup.activateRecentTab();
let tabGroup = this.tabGroup;
tabGroup.tabContainer.removeChild(this.tab);
tabGroup.viewContainer.removeChild(this.webview);
tabGroup.removeTab(this);
tabGroup.activateRecentTab();
}
}