親タブが既に閉じられていた時のための対処
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4795 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
10dba4bbed
commit
65c52e7872
@ -2969,9 +2969,11 @@ TreeStyleTabBrowser.prototype = {
|
||||
aChild.dispatchEvent(event);
|
||||
|
||||
if (this.isGroupTab(parentTab) && !this.hasChildTabs(parentTab)) {
|
||||
window.setTimeout(function(aSelf) {
|
||||
aSelf.getTabBrowserFromChild(parentTab).removeTab(parentTab);
|
||||
}, 0, this);
|
||||
window.setTimeout(function(aTabBrowser) {
|
||||
if (parentTab.parentNode)
|
||||
aTabBrowser.removeTab(parentTab);
|
||||
parentTab = null;
|
||||
}, 0, this.getTabBrowserFromChild(parentTab));
|
||||
}
|
||||
},
|
||||
detachTab : function(aChild, aDontUpdateIndent) // alias
|
||||
|
Loading…
Reference in New Issue
Block a user