commit 32ad75c680785dff4370ab960089c920480b0dcc
parent f68eb7c6f5804de25dcc6cd3115bb33f8090dd22
Author: Simon Kornblith <simon@simonster.com>
Date: Tue, 21 Feb 2012 12:42:11 -0500
Serialize translatorID
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/tools/testTranslators/testTranslators.js b/chrome/content/zotero/tools/testTranslators/testTranslators.js
@@ -129,6 +129,7 @@ var TranslatorTestView = function(translator, type) {
* Initializes TranslatorTestView given a translator and its type
*/
TranslatorTestView.prototype.initWithTranslatorAndType = function(translator, type) {
+ this._translatorID = translator.translatorID;
this._label.appendChild(document.createTextNode(translator.label));
this.isSupported = translator.runMode === Zotero.Translator.RUN_MODE_IN_BROWSER;
@@ -166,6 +167,7 @@ TranslatorTestView.prototype.unserialize = function(serializedData) {
*/
TranslatorTestView.prototype.serialize = function(serializedData) {
return {
+ "translatorID":this._translatorID,
"type":this._type,
"output":this._outputView.getOutput(),
"label":this._label.textContent,