unhork adding a new bookmark from the bookmarks manager

bug=337305
r=brettw
sr=ben
a=ben for 1.8 branch
This commit is contained in:
myk%mozilla.org 2006-05-11 00:58:54 +00:00
parent a4c3347e8a
commit e3cf80beef
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ var MicrosummaryPicker = {
}, },
destroy: function MSP_destroy() { destroy: function MSP_destroy() {
if (this._pageURI) if (this._pageURI && this._microsummaries)
this._microsummaries.removeObserver(this._observer); this._microsummaries.removeObserver(this._observer);
}, },

View File

@ -647,7 +647,7 @@ var BookmarkPropertiesPanel = {
* in the Bookmark Properties dialog. * in the Bookmark Properties dialog.
*/ */
dialogDone: function BPP_dialogDone() { dialogDone: function BPP_dialogDone() {
if (this._isMicrosummaryVisible()) if (this._isMicrosummaryVisible() && this._microsummaries)
this._microsummaries.removeObserver(this._microsummaryObserver); this._microsummaries.removeObserver(this._microsummaryObserver);
this._saveChanges(); this._saveChanges();
this._hideBookmarkProperties(); this._hideBookmarkProperties();