From f1801d266faa74708fcd9813b5bd3361bf662c11 Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 31 Jul 2009 06:39:17 +0000 Subject: [PATCH] =?UTF-8?q?=E5=8F=97=E3=81=91=E5=8F=96=E3=81=A3=E3=81=9F?= =?UTF-8?q?=E3=82=BF=E3=83=96=E3=81=AE=E9=85=8D=E5=88=97=E3=82=92=E3=82=AF?= =?UTF-8?q?=E3=83=AA=E3=83=BC=E3=83=B3=E3=82=A2=E3=83=83=E3=83=97=E3=81=97?= =?UTF-8?q?=E3=81=A6=E3=81=8B=E3=82=89=E4=BD=BF=E3=81=86?= 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@4858 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/bookmarksOverlay.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/content/treestyletab/bookmarksOverlay.js b/content/treestyletab/bookmarksOverlay.js index e81f7855..75750a45 100644 --- a/content/treestyletab/bookmarksOverlay.js +++ b/content/treestyletab/bookmarksOverlay.js @@ -14,10 +14,12 @@ var TreeStyleTabBookmarksService = { beginAddBookmarksFromTabs : function(aTabs) /* PUBLIC API */ { this._addingBookmarks = []; - this._addingBookmarkTreeStructure = aTabs.map(function(aTab) { - var parent = TreeStyleTabService.getParentTab(aTab); - return aTabs.indexOf(parent); - }, this); + this._addingBookmarkTreeStructure = TreeStyleTabService + .cleanUpTabsArray(aTabs) + .map(function(aTab) { + var parent = TreeStyleTabService.getParentTab(aTab); + return aTabs.indexOf(parent); + }, this); this.BookmarksService.addObserver(this, false); },