Fix potential translator initialization problem after 04516af552

This commit is contained in:
Dan Stillman 2016-12-12 02:04:18 -05:00
parent 2ead95b39a
commit 425838e2ec

View file

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