From 55e6927cc2718b6abf50fad26cfc8d654a45844e Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Thu, 8 Sep 2016 12:01:03 +0900 Subject: [PATCH] Simplify --- modules/bookmark.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/bookmark.js b/modules/bookmark.js index 39196b84..7883cb02 100644 --- a/modules/bookmark.js +++ b/modules/bookmark.js @@ -412,9 +412,8 @@ PlacesUIUtils._openTabset = function(aItemsToOpen, aEvent, aWindow, ...aArgs) { }); log(' items => '+aItemsToOpen.length); - var allArgs = [aItemsToOpen, aEvent, aWindow].concat(aArgs); if (aItemsToOpen.length <= 0) - return this.__treestyletab__openTabset.apply(this, allArgs); + return this.__treestyletab__openTabset(aItemsToOpen, aEvent, aWindow, ...aArgs); var w = aWindow && aWindow.document.documentElement.getAttribute('windowtype') == 'navigator:browser' ? aWindow : @@ -425,13 +424,13 @@ PlacesUIUtils._openTabset = function(aItemsToOpen, aEvent, aWindow, ...aArgs) { var where = w && w.whereToOpenLink(aEvent, false, true) || 'window'; log(' where: '+where); if (where === 'window') - return this.__treestyletab__openTabset.apply(this, allArgs); + return this.__treestyletab__openTabset(aItemsToOpen, aEvent, aWindow, ...aArgs); var result = BS.handleTabsOpenProcess(where, aEvent, w, ids, uris, aItemsToOpen, this.__treestyletab__folderName); log(' result: ', result); var tabs = TST.doAndGetNewTabs((function() { - this.__treestyletab__openTabset.apply(this, allArgs); + this.__treestyletab__openTabset(aItemsToOpen, aEvent, aWindow, ...aArgs); }).bind(this), w.gBrowser); log(' tabs: '+tabs.length);