From 764ab3b27d44fff9d13e750d13eb1a202cf7af04 Mon Sep 17 00:00:00 2001 From: piro Date: Mon, 29 Mar 2010 23:39:06 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=96=E3=83=83=E3=82=AF=E3=83=9E=E3=83=BC?= =?UTF-8?q?=E3=82=AF=E3=81=AE=E3=83=97=E3=83=AD=E3=83=91=E3=83=86=E3=82=A3?= =?UTF-8?q?=E7=AD=89=E3=81=A7=E7=84=A1=E9=99=90=E3=83=AB=E3=83=BC=E3=83=97?= =?UTF-8?q?=E3=81=AB=E9=99=A5=E3=82=8B=E5=8F=AF=E8=83=BD=E6=80=A7=E3=81=8C?= =?UTF-8?q?=E3=81=82=E3=81=A3=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6519 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/bookmarksOverlay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/treestyletab/bookmarksOverlay.js b/content/treestyletab/bookmarksOverlay.js index 430d683b..a456a3b8 100644 --- a/content/treestyletab/bookmarksOverlay.js +++ b/content/treestyletab/bookmarksOverlay.js @@ -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: