From 481bc1c303039a44ec8a6471cf78732800e5776e Mon Sep 17 00:00:00 2001 From: Piro / YUKI Hiroshi Date: Sun, 28 Jul 2013 01:57:50 +0900 Subject: [PATCH] Initialize "Close Tabs to the Right" menuitem even if Multiple Tab Handler is installed. https://github.com/piroor/treestyletab/commit/ddbd41163b62c20566569b2e321c28c958f2c72b#commitcomment-3731331 --- modules/browser.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/browser.js b/modules/browser.js index bfeeb0ef..e432a3e7 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -852,12 +852,12 @@ TreeStyleTabBrowser.prototype = { } tabContextMenu = null; }, 0, this, b, tabContextMenu); + } - let closeTabsToEnd = d.getElementById(this.kMENUITEM_CLOSE_TABS_TO_END); - if (closeTabsToEnd) { - this._closeTabsToEnd_horizontalLabel = closeTabsToEnd.getAttribute('label'); - this._closeTabsToEnd_horizontalAccesskey = closeTabsToEnd.getAttribute('accesskey'); - } + let closeTabsToEnd = d.getElementById(this.kMENUITEM_CLOSE_TABS_TO_END); + if (closeTabsToEnd) { + this._closeTabsToEnd_horizontalLabel = closeTabsToEnd.getAttribute('label'); + this._closeTabsToEnd_horizontalAccesskey = closeTabsToEnd.getAttribute('accesskey'); } var removeTabItem = d.getAnonymousElementByAttribute(b, 'id', 'context_closeTab');