commit 425838e2ec30c142b946039f12d583e877b2c79c
parent 2ead95b39a119175b16248acd8fe2368f55e7c04
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 12 Dec 2016 02:04:18 -0500
Fix potential translator initialization problem after 04516af552
Diffstat:
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
@@ -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;