ブックマークのプロパティ等で無限ループに陥る可能性があった

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6519 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-03-29 23:39:06 +00:00
parent 3dc11f6e22
commit 764ab3b27d

View File

@ -111,7 +111,7 @@ var TreeStyleTabBookmarksService = {
var treeStructure = aIDs.map(function(aId, aIndex) { var treeStructure = aIDs.map(function(aId, aIndex) {
let id = this.getParentItem(aId); let id = this.getParentItem(aId);
let index = aIDs.indexOf(id); let index = aIDs.indexOf(id);
return index >= aIndex ? aDefaultParentID : index ; return index > aIndex || index < -1 ? aDefaultParentID : index ;
}, this); }, this);
/* Correct patterns like: /* Correct patterns like: