From b01487dccc080b7de026417c4ca5ba11e62ea0ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Wed, 28 Dec 2016 17:25:38 +0200 Subject: [PATCH] Make Zotero.Translator shareable with connector --- .../zotero/xpcom/translation/translator.js | 47 ++++++++++--------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/chrome/content/zotero/xpcom/translation/translator.js b/chrome/content/zotero/xpcom/translation/translator.js index b8e1ab178..d3c4232cf 100644 --- a/chrome/content/zotero/xpcom/translation/translator.js +++ b/chrome/content/zotero/xpcom/translation/translator.js @@ -36,8 +36,6 @@ var TRANSLATOR_OPTIONAL_PROPERTIES = ["targetAll", "browserSupport", "minVersion // Properties that are passed from background to inject page in connector var TRANSLATOR_PASSING_PROPERTIES = TRANSLATOR_REQUIRED_PROPERTIES. concat(["targetAll", "browserSupport", "code", "runMode", "itemType"]); -// Properties that are saved in connector if set but not required -var TRANSLATOR_SAVE_PROPERTIES = TRANSLATOR_REQUIRED_PROPERTIES.concat(["browserSupport"]); /** * @class Represents an individual translator @@ -77,17 +75,15 @@ Zotero.Translator = function(info) { */ Zotero.Translator.prototype.init = function(info) { // make sure we have all the properties - for(var i=0; i