use new API of Multiple Tab Handler
This commit is contained in:
parent
136a61ac3e
commit
543ca9330b
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user