同じサブツリーの中のタブの判定を修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4790 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-07-23 16:26:56 +00:00
parent e234f8ea7a
commit 8cb9c7e692

View File

@ -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)
{