use new API of Multiple Tab Handler

This commit is contained in:
SHIMODA Hiroshi 2011-01-11 13:27:43 +09:00
parent 136a61ac3e
commit 543ca9330b

View File

@ -2313,9 +2313,10 @@ TreeStyleTabBrowser.prototype = {
onTabsRemoving : function TSTBrowser_onTabsRemoving(aEvent) 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) { if (trees.some(function(aTabs) {
return aTabs.length > 1 && return aTabs.length > 1 &&
!this.fireTabSubtreeClosingEvent(aTabs[0], aTabs); !this.fireTabSubtreeClosingEvent(aTabs[0], aTabs);