From 53aa22fb2a5f45af08ccbed57be0d3a4923f5775 Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 31 Jul 2009 04:09:43 +0000 Subject: [PATCH] undefined variable git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4855 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/editBookmarkOverlay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/treestyletab/editBookmarkOverlay.js b/content/treestyletab/editBookmarkOverlay.js index d623d125..47ac885e 100644 --- a/content/treestyletab/editBookmarkOverlay.js +++ b/content/treestyletab/editBookmarkOverlay.js @@ -83,7 +83,7 @@ var TreeStyleTabBookmarksProperty = { var items = this._getItemsInFolder(PlacesUtils.bookmarks.getFolderIdForItem(aCurrentItem)); var treeStructure = TreeStyleTabService.getTreeStructureFromBookmarkItems(items); - var selected = treeStructure[current]; + var selected = treeStructure[items.indexOf(aCurrentItem)]; if (selected > -1) selected = items[selected]; var fragment = document.createDocumentFragment();