From bc354b1435939cda312bcab97e61aea2855a20f2 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 19 May 2011 23:00:01 +0000 Subject: [PATCH] Fix "win.ZoteroPane.document is undefined" when Zotero is set to start in tab mode and the Zotero tab has not yet been selected (missed code in last commit) --- chrome/content/zotero/zoteroPane.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 4a06384f6..a401b5a63 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -84,6 +84,8 @@ var ZoteroPane = new function() this.reportErrors = reportErrors; this.displayErrorMessage = displayErrorMessage; + this.document = document; + const COLLECTIONS_HEIGHT = 32; // minimum height of the collections pane and toolbar var self = this; @@ -98,7 +100,6 @@ var ZoteroPane = new function() */ function init() { - this.document = document; if(!Zotero || !Zotero.initialized) return; // Set "Report Errors..." label via property rather than DTD entity,