From 8cb9c7e69239e17a71bf2ab3a4047f0f152e704f Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 23 Jul 2009 16:26:56 +0000 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E3=81=98=E3=82=B5=E3=83=96=E3=83=84?= =?UTF-8?q?=E3=83=AA=E3=83=BC=E3=81=AE=E4=B8=AD=E3=81=AE=E3=82=BF=E3=83=96?= =?UTF-8?q?=E3=81=AE=E5=88=A4=E5=AE=9A=E3=82=92=E4=BF=AE=E6=AD=A3?= 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@4790 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index c63f642c..97561850 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -2275,6 +2275,7 @@ catch(e) { window.setTimeout(function(aSelf) { aTabs.forEach(function(aTab) { b.treeStyleTab.attachTabTo(aTab, root); + b.treeStyleTab.collapseExpandTab(aTab, false); }, aSelf); }, 0, this); }, @@ -2290,7 +2291,7 @@ catch(e) { if (!lastParent || parent != lastParent) return true; lastParent = parent; } - return false; + return this.getChildTabs(lastParent).length != aTabs.length; }, getRootTabs : function(aTabs) {