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)

This commit is contained in:
Simon Kornblith 2011-05-19 23:00:01 +00:00
parent 5cf451aa0e
commit bc354b1435

View File

@ -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,