www

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

commit 63724c2625a586cc80844c8ee136553564d66397
parent a32c7b6bf96a95141f9a54119cb0374833191b80
Author: Simon Kornblith <simon@simonster.com>
Date:   Sun, 22 Jan 2012 14:30:11 -0500

Don't break import with translators without configOptions specified

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

diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js @@ -1603,7 +1603,8 @@ Zotero.Translate.Import.prototype._loadTranslator = function(translator, callbac * Prepare translator IO */ Zotero.Translate.Import.prototype._loadTranslatorPrepareIO = function(translator, callback) { - var dataMode = this._sandboxManager.sandbox.ZOTERO_TRANSLATOR_INFO.configOptions["dataMode"]; + var configOptions = this._sandboxManager.sandbox.ZOTERO_TRANSLATOR_INFO.configOptions; + var dataMode = configOptions ? configOptions : {}; var me = this; var initCallback = function(status, err) {