From 2a968e76961deeea76e12fb0ce1b2df062ffaf45 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 24 Aug 2011 22:08:27 +0000 Subject: [PATCH] Don't throw if collectionsView not registered, and no need to pass false to removeObserver --- chrome/content/zotero/zoteroPane.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 8200589d0..45993b7bf 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -335,11 +335,10 @@ var ZoteroPane = new function() var tagSelector = document.getElementById('zotero-tag-selector'); tagSelector.unregister(); - this.collectionsView.unregister(); - if (this.itemsView) - this.itemsView.unregister(); + if(this.collectionsView) this.collectionsView.unregister(); + if(this.itemsView) this.itemsView.unregister(); - observerService.removeObserver(_reloadObserver, "zotero-reloaded", false); + observerService.removeObserver(_reloadObserver, "zotero-reloaded"); } /**