group tab should be closed with delay
This commit is contained in:
parent
c419a3f63b
commit
749d98bf05
@ -2773,20 +2773,22 @@ TreeStyleTabBrowser.prototype = {
|
||||
|
||||
var parent = this.getParentTab(aTab);
|
||||
|
||||
var siblings = parent && parent.parentNode ? this.getChildTabs(parent) : this.visibleRootTabs ;
|
||||
siblings = siblings.filter(function(aSiblingTab) {
|
||||
return aSiblingTab != aTab;
|
||||
});
|
||||
var groupTabs = siblings.filter(function(aSiblingTab) {
|
||||
return this.isGroupTab(aSiblingTab);
|
||||
}, this);
|
||||
this.window.setTimeout(function(aSelf) {
|
||||
var siblings = parent && parent.parentNode ? aSelf.getChildTabs(parent) : aSelf.visibleRootTabs ;
|
||||
siblings = siblings.filter(function(aSiblingTab) {
|
||||
return aSiblingTab != aTab;
|
||||
});
|
||||
var groupTabs = siblings.filter(function(aSiblingTab) {
|
||||
return aSelf.isGroupTab(aSiblingTab);
|
||||
});
|
||||
|
||||
if (
|
||||
groupTabs.length == 1 &&
|
||||
siblings.length == 1 &&
|
||||
this.hasChildTabs(groupTabs[0])
|
||||
)
|
||||
this.getTabBrowserFromChild(groupTabs[0]).removeTab(groupTabs[0], { animate : true });
|
||||
if (
|
||||
groupTabs.length == 1 &&
|
||||
siblings.length == 1 &&
|
||||
aSelf.hasChildTabs(groupTabs[0])
|
||||
)
|
||||
aSelf.getTabBrowserFromChild(groupTabs[0]).removeTab(groupTabs[0], { animate : true });
|
||||
}, 0, this);
|
||||
},
|
||||
getNextFocusedTab : function TSTBrowser_getNextFocusedTab(aTab)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user