www

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

commit 38e25d4756351cb7ffe5956faea98b02f2c8c8dd
parent c10fe8606cd714958d7e3439b8cebecbd5c4ad99
Author: Simon Kornblith <simon@simonster.com>
Date:   Fri, 17 Jun 2011 03:49:48 +0000

restore comment and fix an accidental transposition in connector.js


Diffstat:
Mchrome/content/zotero/xpcom/connector/connector.js | 2+-
Mchrome/content/zotero/xpcom/translation/translator.js | 23+++++++++++++++++++++++
2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/connector/connector.js b/chrome/content/zotero/xpcom/connector/connector.js @@ -120,7 +120,7 @@ Zotero.Connector = new function() { */ this.getData = function(callback) { Zotero.HTTP.doPost(CONNECTOR_URI+"connector/getData", - JSON.stringify({"browser":Zotero.Connector_Browser}), + JSON.stringify({"browser":Zotero.browser}), function(req) { var isOnline = req.status !== 0; diff --git a/chrome/content/zotero/xpcom/translation/translator.js b/chrome/content/zotero/xpcom/translation/translator.js @@ -396,6 +396,29 @@ Zotero.Translators = new function() { } } +/** + * @class Represents an individual translator + * @constructor + * @param {nsIFile} file File from which to generate a translator object + * @property {String} translatorID Unique GUID of the translator + * @property {Integer} translatorType Type of the translator (use bitwise & with TRANSLATOR_TYPES to read) + * @property {String} label Human-readable name of the translator + * @property {String} creator Author(s) of the translator + * @property {String} target Location that the translator processes + * @property {String} minVersion Minimum Zotero version + * @property {String} maxVersion Minimum Zotero version + * @property {Integer} priority Lower-priority translators will be selected first + * @property {String} browserSupport String indicating browser supported by the translator + * g = Gecko (Firefox) + * c = Google Chrome (WebKit & V8) + * s = Safari (WebKit & Nitro/Squirrelfish Extreme) + * i = Internet Explorer + * @property {Object} configOptions Configuration options for import/export + * @property {Object} displayOptions Display options for export + * @property {Boolean} inRepository Whether the translator may be found in the repository + * @property {String} lastUpdated SQL-style date and time of translator's last update + * @property {String} code The executable JavaScript for the translator + */ Zotero.Translator = function(file, json, code) { const codeGetterFunction = function() { return Zotero.File.getContents(this.file); } // Maximum length for the info JSON in a translator