From 44d78584d4dc0660308129b861f7ea5346846cec Mon Sep 17 00:00:00 2001 From: piro Date: Sat, 18 Sep 2010 15:17:48 +0000 Subject: [PATCH] =?UTF-8?q?=E9=96=89=E3=81=98=E3=82=89=E3=82=8C=E3=82=8B?= =?UTF-8?q?=E3=82=BF=E3=83=96=E3=81=AE=E6=95=B0=E3=82=92=E6=AD=A3=E3=81=97?= =?UTF-8?q?=E3=81=8F=E8=A8=88=E7=AE=97=E3=81=99=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7261 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 1c6e521d..986856c4 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -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;