Serialize translatorID

This commit is contained in:
Simon Kornblith 2012-02-21 12:42:11 -05:00
parent f68eb7c6f5
commit 32ad75c680

View file

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