www

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

commit 7d9493827e2d322f47769b46b83f1520ffda2439
parent 89e7d6a1ef0e05c4ed68fd989bdb0c05cac366c4
Author: Simon Kornblith <simon@simonster.com>
Date:   Thu, 11 Sep 2008 20:45:01 +0000

fix bug in translator caching


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

diff --git a/chrome/content/zotero/xpcom/translate.js b/chrome/content/zotero/xpcom/translate.js @@ -67,7 +67,7 @@ Zotero.Translators = new function() { _translators[translator.translatorID].file.leafName+'"'); } else { // add to cache - _translators[translator.translatorID] = translator.translatorID; + _translators[translator.translatorID] = translator; for(var type in TRANSLATOR_TYPES) { if(translator.translatorType & TRANSLATOR_TYPES[type]) { _cache[type].push(translator); @@ -101,7 +101,7 @@ Zotero.Translators = new function() { /** * @class Represents an individual translator * @constructor - * @param {nsIFile} File from which to generate a translator object + * @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