From e494c270f6638eafb9933e4314eeff7cc8ec732e Mon Sep 17 00:00:00 2001 From: piro Date: Sat, 18 Sep 2010 15:12:14 +0000 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=E5=AD=90=E3=82=BF=E3=83=96=E3=82=92?= =?UTF-8?q?=E3=83=AA=E3=83=AD=E3=83=BC=E3=83=89=E3=81=99=E3=82=8B=E3=80=8D?= =?UTF-8?q?=E3=81=8C=E8=A6=AA=E3=82=BF=E3=83=96=E3=81=BE=E3=81=A7=E3=83=AA?= =?UTF-8?q?=E3=83=AD=E3=83=BC=E3=83=89=E3=81=97=E3=81=A6=E3=81=97=E3=81=BE?= =?UTF-8?q?=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F?= 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@7260 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- modules/utils.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/utils.js b/modules/utils.js index 2d6d4c1c..cfbdf946 100644 --- a/modules/utils.js +++ b/modules/utils.js @@ -877,7 +877,7 @@ var TreeStyleTabUtils = { return aA._tPos - aB._tPos; }, - gatherSubtreeMemberTabs : function TSTUtils_gatherSubtreeMemberTabs(aTabOrTabs) + gatherSubtreeMemberTabs : function TSTUtils_gatherSubtreeMemberTabs(aTabOrTabs, aOnlyChildren) { var tabs = aTabOrTabs; if (!(tabs instanceof Array)) { @@ -891,9 +891,7 @@ var TreeStyleTabUtils = { descendant = descendant.concat(b.treeStyleTab.getDescendantTabs(tabs[i])); } - tabs = this.cleanUpTabsArray(tabs.concat(descendant)); - - return tabs; + return this.cleanUpTabsArray(aOnlyChildren ? descendant : tabs.concat(descendant)); }, splitTabsToSubtrees : function TSTUtils_splitTabsToSubtrees(aTabs) /* PUBLIC API */