子タブを持っていない時は、サブツリーは折り畳まれていないと見なすようにした
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5597 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
a542a8c85c
commit
63ce315380
@ -941,7 +941,7 @@ var TreeStyleTabService = {
|
||||
|
||||
isSubtreeCollapsed : function(aTab) /* PUBLIC API */
|
||||
{
|
||||
if (!aTab || !this.canCollapseSubtree(aTab))
|
||||
if (!aTab || !this.canCollapseSubtree(aTab) || !this.hasChildTabs(aTab))
|
||||
return false;
|
||||
|
||||
return aTab.getAttribute(this.kSUBTREE_COLLAPSED) == 'true';
|
||||
|
Loading…
Reference in New Issue
Block a user