www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit ccc18dd41e8386f2623b4b56cbd7372ca9d27605
parent c1211b035704ad11177ecde028489a6a00589c4c
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 20 Aug 2013 12:43:39 -0400

Return the promise in Zotero.Translators.loadFromDisk()

Diffstat:
Mchrome/content/zotero/xpcom/translation/translators.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/translation/translators.js b/chrome/content/zotero/xpcom/translation/translators.js @@ -152,7 +152,7 @@ Zotero.Translators = new function() { */ this.loadFromDisk = function(file) { const infoRe = /^\s*{[\S\s]*?}\s*?[\r\n]/; - Zotero.File.getContentsAsync(this.file).then(function(source) { + return Zotero.File.getContentsAsync(this.file).then(function(source) { return Zotero.Translators.load(file, infoRe.exec(source)[0], source); }).fail(function() { throw "Invalid or missing translator metadata JSON object in " + file.leafName;