From 8623f70bed89c7841ee4666f3a7482da4c26bbaf Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 31 Jul 2009 02:11:09 +0000 Subject: [PATCH] getParentItemForBookmark => getParentItemForBookmarkItem git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4849 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/editBookmarkOverlay.js | 4 ++-- content/treestyletab/treestyletab.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/treestyletab/editBookmarkOverlay.js b/content/treestyletab/editBookmarkOverlay.js index f438cb43..3fad1776 100644 --- a/content/treestyletab/editBookmarkOverlay.js +++ b/content/treestyletab/editBookmarkOverlay.js @@ -61,7 +61,7 @@ var TreeStyleTabBookmarksProperty = { initParentMenuList : function() { var id = gEditItemOverlay.itemId; - var parent = TreeStyleTabService.getParentItemForBookmark(id); + var parent = TreeStyleTabService.getParentItemForBookmarkItem(id); var popup = this.popup; var range = document.createRange(); @@ -82,7 +82,7 @@ var TreeStyleTabBookmarksProperty = { let parent; let current = aId; let nest = 0; - while ((parent = current in parents ? parents[current] : TreeStyleTabService.getParentItemForBookmark(current) ) != -1) + while ((parent = current in parents ? parents[current] : TreeStyleTabService.getParentItemForBookmarkItem(current) ) != -1) { if (siblings.indexOf(parent) >= siblings.indexOf(current)) break; nest++; diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 71b4c561..9917260c 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -2622,7 +2622,7 @@ catch(e) { this._addingBookmarkTreeStructure = []; }, - getParentItemForBookmark : function(aId) + getParentItemForBookmarkItem : function(aId) { if (aId < 0) return -1; var annotations = PlacesUtils.getAnnotationsForItem(aId); @@ -2637,7 +2637,7 @@ catch(e) { getTreeStructureFromBookmarkItems : function(aIDs) { var treeStructure = aIDs.map(function(aId) { - let id = this.getParentItemForBookmark(aId); + let id = this.getParentItemForBookmarkItem(aId); return id < 0 ? -1 : aIDs.indexOf(id); }, this); treeStructure = treeStructure.reverse();