ブックマークのプロパティ等で無限ループに陥る可能性があった
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6519 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
3dc11f6e22
commit
764ab3b27d
@ -111,7 +111,7 @@ var TreeStyleTabBookmarksService = {
|
||||
var treeStructure = aIDs.map(function(aId, aIndex) {
|
||||
let id = this.getParentItem(aId);
|
||||
let index = aIDs.indexOf(id);
|
||||
return index >= aIndex ? aDefaultParentID : index ;
|
||||
return index > aIndex || index < -1 ? aDefaultParentID : index ;
|
||||
}, this);
|
||||
|
||||
/* Correct patterns like:
|
||||
|
Loading…
Reference in New Issue
Block a user