From 543ca9330b25e0258bd5f96aa1f378c831d6dcc0 Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Tue, 11 Jan 2011 13:27:43 +0900 Subject: [PATCH] use new API of Multiple Tab Handler --- content/treestyletab/treestyletabbrowser.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index c649d116..8bd1ae6b 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -2313,9 +2313,10 @@ TreeStyleTabBrowser.prototype = { onTabsRemoving : function TSTBrowser_onTabsRemoving(aEvent) { - var b = this.getTabBrowserFromChild(aEvent.tabs[0]); + var tabs = aEvent.tabs || aEvent.getData('tabs'); + var b = this.getTabBrowserFromChild(tabs[0]); - var trees = this.splitTabsToSubtrees(aEvent.tabs); + var trees = this.splitTabsToSubtrees(tabs); if (trees.some(function(aTabs) { return aTabs.length > 1 && !this.fireTabSubtreeClosingEvent(aTabs[0], aTabs);