ブックマークの保存が開始されていない時にブックマークの保存の終了処理を呼ぶとエラーになっていたのを、エラーにならないようにした
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6120 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
a0ecb16062
commit
96fc9b2b2e
@ -13,6 +13,9 @@ var TreeStyleTabBookmarksService = {
|
|||||||
|
|
||||||
beginAddBookmarksFromTabs : function TSTBMService_beginAddBookmarksFromTabs(aTabs) /* PUBLIC API */
|
beginAddBookmarksFromTabs : function TSTBMService_beginAddBookmarksFromTabs(aTabs) /* PUBLIC API */
|
||||||
{
|
{
|
||||||
|
if (this._observing) return;
|
||||||
|
this._observing = true;
|
||||||
|
|
||||||
this._addingBookmarks = [];
|
this._addingBookmarks = [];
|
||||||
this._addingBookmarkTreeStructure = this
|
this._addingBookmarkTreeStructure = this
|
||||||
.cleanUpTabsArray(aTabs)
|
.cleanUpTabsArray(aTabs)
|
||||||
@ -26,6 +29,9 @@ var TreeStyleTabBookmarksService = {
|
|||||||
|
|
||||||
endAddBookmarksFromTabs : function TSTBMService_endAddBookmarksFromTabs() /* PUBLIC API */
|
endAddBookmarksFromTabs : function TSTBMService_endAddBookmarksFromTabs() /* PUBLIC API */
|
||||||
{
|
{
|
||||||
|
if (!this._observing) return;
|
||||||
|
this._observing = false;
|
||||||
|
|
||||||
this.BookmarksService.removeObserver(this);
|
this.BookmarksService.removeObserver(this);
|
||||||
|
|
||||||
// this is adding bookmark folder from tabs, so ignroe the first item!
|
// this is adding bookmark folder from tabs, so ignroe the first item!
|
||||||
|
Loading…
Reference in New Issue
Block a user