From c3b29d83cefb0f3cbce06d337e96dd8f7a1c700d Mon Sep 17 00:00:00 2001 From: "dietrich@mozilla.com" Date: Wed, 19 Mar 2008 12:35:25 -0700 Subject: [PATCH] Bug 423040 ? Cancel after adding a tag does not work (r=mano) --- .../components/places/src/nsPlacesTransactionsService.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/browser/components/places/src/nsPlacesTransactionsService.js b/browser/components/places/src/nsPlacesTransactionsService.js index 7af834d3a82..ea824dd7a7d 100644 --- a/browser/components/places/src/nsPlacesTransactionsService.js +++ b/browser/components/places/src/nsPlacesTransactionsService.js @@ -912,7 +912,7 @@ placesTagURITransaction.prototype = { doTransaction: function PTU_doTransaction() { if (PlacesUtils.getBookmarksForURI(this._uri).length == 0) { // Force an unfiled bookmark first - this.__unfiledItemId = + this._unfiledItemId = PlacesUtils.bookmarks .insertBookmark(PlacesUtils.unfiledBookmarksFolderId, this._uri, -1, @@ -922,9 +922,9 @@ placesTagURITransaction.prototype = { }, undoTransaction: function PTU_undoTransaction() { - if (this.__unfiledItemId != -1) { - PlacesUtils.bookmarks.removeItem(this.__unfiledItemId); - this.__unfiledItemId = -1; + if (this._unfiledItemId != -1) { + PlacesUtils.bookmarks.removeItem(this._unfiledItemId); + this._unfiledItemId = -1; } PlacesUtils.tagging.untagURI(this._uri, this._tags); }