From 425838e2ec30c142b946039f12d583e877b2c79c Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 12 Dec 2016 02:04:18 -0500 Subject: [PATCH] Fix potential translator initialization problem after 04516af552 --- chrome/content/zotero/xpcom/translation/translators.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/translation/translators.js b/chrome/content/zotero/xpcom/translation/translators.js index 7c4ca242b..62defd638 100644 --- a/chrome/content/zotero/xpcom/translation/translators.js +++ b/chrome/content/zotero/xpcom/translation/translators.js @@ -47,7 +47,6 @@ Zotero.Translators = new function() { if (_initializationDeferred && !options.reinit) { return _initializationDeferred.promise; } - _initializationDeferred = Zotero.Promise.defer(); // Wait until bundled files have been updated, except when this is called by the schema update // code itself @@ -55,6 +54,8 @@ Zotero.Translators = new function() { yield Zotero.Schema.schemaUpdatePromise; } + _initializationDeferred = Zotero.Promise.defer(); + Zotero.debug("Initializing translators"); var start = new Date;