ツリー構造が期待通りに復元されない問題を修正
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4836 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
f74ff26ebe
commit
4b269023bf
@ -43,7 +43,9 @@ window.addEventListener('load', function() {
|
||||
if (openGroupBookmarkBehavior & TreeStyleTabService.kGROUP_BOOKMARK_SUBTREE) {
|
||||
if (
|
||||
openGroupBookmarkBehavior & TreeStyleTabService.kGROUP_BOOKMARK_USE_DUMMY &&
|
||||
treeStructure.filter(function(aParent) { return aParent == -1; }).length > 1
|
||||
treeStructure.filter(function(aParent, aIndex) {
|
||||
return aParent == -1 || aIndex == aParent;
|
||||
}).length > 1
|
||||
) {
|
||||
treeStructure.unshift(-1);
|
||||
treeStructure = treeStructure.map(function(aPosition) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user