閉じられるタブの数を正しく計算するように
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7261 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
e494c270f6
commit
44d78584d4
@ -1918,10 +1918,13 @@ catch(e) {
|
||||
|
||||
removeTabSubtree : function TSTService_removeTabSubtree(aTabOrTabs, aOnlyChildren)
|
||||
{
|
||||
var tabs = this.gatherSubtreeMemberTabs(aTabOrTabs);
|
||||
var tabs = this.gatherSubtreeMemberTabs(aTabOrTabs, aOnlyChildren);
|
||||
if (!this.warnAboutClosingTabs(tabs.length))
|
||||
return;
|
||||
|
||||
if (aOnlyChildren)
|
||||
tabs = this.gatherSubtreeMemberTabs(aTabOrTabs);
|
||||
|
||||
this.splitTabsToSubtrees(tabs).forEach(function(aTabs) {
|
||||
if (!this.fireTabSubtreeClosingEvent(aTabs[0], aTabs))
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user