すべての子を解放した時だけダミーの親タブを閉じる

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4791 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-07-23 16:28:31 +00:00
parent 8cb9c7e692
commit 4754f4803d

View File

@ -2968,7 +2968,7 @@ TreeStyleTabBrowser.prototype = {
event.initEvent('TreeStyleTabParted', true, true);
aChild.dispatchEvent(event);
if (this.isGroupTab(parentTab)) {
if (this.isGroupTab(parentTab) && !this.hasChildTabs(parentTab)) {
window.setTimeout(function(aSelf) {
aSelf.getTabBrowserFromChild(parentTab).removeTab(parentTab);
}, 0, this);