From 96fc9b2b2e4e486d92e45d4e60e2533acf2b32d2 Mon Sep 17 00:00:00 2001 From: piro Date: Wed, 20 Jan 2010 12:36:19 +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=E4=BF=9D=E5=AD=98=E3=81=8C=E9=96=8B=E5=A7=8B?= =?UTF-8?q?=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84=E3=81=AA=E3=81=84=E6=99=82?= =?UTF-8?q?=E3=81=AB=E3=83=96=E3=83=83=E3=82=AF=E3=83=9E=E3=83=BC=E3=82=AF?= =?UTF-8?q?=E3=81=AE=E4=BF=9D=E5=AD=98=E3=81=AE=E7=B5=82=E4=BA=86=E5=87=A6?= =?UTF-8?q?=E7=90=86=E3=82=92=E5=91=BC=E3=81=B6=E3=81=A8=E3=82=A8=E3=83=A9?= =?UTF-8?q?=E3=83=BC=E3=81=AB=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F?= =?UTF-8?q?=E3=81=AE=E3=82=92=E3=80=81=E3=82=A8=E3=83=A9=E3=83=BC=E3=81=AB?= =?UTF-8?q?=E3=81=AA=E3=82=89=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E3=81=97=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@6120 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/bookmarksOverlay.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/treestyletab/bookmarksOverlay.js b/content/treestyletab/bookmarksOverlay.js index 1eb1706f..476959a4 100644 --- a/content/treestyletab/bookmarksOverlay.js +++ b/content/treestyletab/bookmarksOverlay.js @@ -13,6 +13,9 @@ var TreeStyleTabBookmarksService = { beginAddBookmarksFromTabs : function TSTBMService_beginAddBookmarksFromTabs(aTabs) /* PUBLIC API */ { + if (this._observing) return; + this._observing = true; + this._addingBookmarks = []; this._addingBookmarkTreeStructure = this .cleanUpTabsArray(aTabs) @@ -26,6 +29,9 @@ var TreeStyleTabBookmarksService = { endAddBookmarksFromTabs : function TSTBMService_endAddBookmarksFromTabs() /* PUBLIC API */ { + if (!this._observing) return; + this._observing = false; + this.BookmarksService.removeObserver(this); // this is adding bookmark folder from tabs, so ignroe the first item!