子タブがひとつもなくなる時はダミーの親タブを自動で閉じる
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4789 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
cbf1095d49
commit
e234f8ea7a
@ -2967,6 +2967,16 @@ TreeStyleTabBrowser.prototype = {
|
||||
var event = document.createEvent('Events');
|
||||
event.initEvent('TreeStyleTabParted', true, true);
|
||||
aChild.dispatchEvent(event);
|
||||
|
||||
if (this.isGroupTab(parentTab)) {
|
||||
window.setTimeout(function(aSelf) {
|
||||
aSelf.getTabBrowserFromChild(parentTab).removeTab(parentTab);
|
||||
}, 0, this);
|
||||
}
|
||||
},
|
||||
detachTab : function(aChild, aDontUpdateIndent) // alias
|
||||
{
|
||||
return this.partTab(aChild, aDontUpdateIndent);
|
||||
},
|
||||
|
||||
updateTabsIndent : function(aTabs, aLevel, aProp, aJustNow)
|
||||
|
Loading…
Reference in New Issue
Block a user