www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit c45198c90b963954752a234afc1af6c08c607de3
parent 7e5b48838a37ad43231e9e15c866a43879469a70
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue,  6 Sep 2011 01:26:13 +0000

Fix for certain situations where Zotero pane display settings could be reset


Diffstat:
Mchrome/content/zotero/zoteroPane.js | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js @@ -29,6 +29,7 @@ const ZOTERO_TAB_URL = "chrome://zotero/content/tab.xul"; */ var ZoteroPane = new function() { + var _unserialized = false; this.collectionsView = false; this.itemsView = false; this.__defineGetter__('loaded', function () _loaded); @@ -3726,6 +3727,7 @@ var ZoteroPane = new function() * Unserializes zotero-persist elements from preferences */ this.unserializePersist = function() { + _unserialized = true; var serializedValues = Zotero.Prefs.get("pane.persist"); if(!serializedValues) return; serializedValues = JSON.parse(serializedValues); @@ -3750,6 +3752,7 @@ var ZoteroPane = new function() * Serializes zotero-persist elements to preferences */ this.serializePersist = function() { + if(!_unserialized) return; var serializedValues = {}; for each(var el in document.getElementsByAttribute("zotero-persist", "*")) { if(!el.getAttribute) continue;