fix bug in translator caching
This commit is contained in:
parent
89e7d6a1ef
commit
7d9493827e
|
@ -67,7 +67,7 @@ Zotero.Translators = new function() {
|
||||||
_translators[translator.translatorID].file.leafName+'"');
|
_translators[translator.translatorID].file.leafName+'"');
|
||||||
} else {
|
} else {
|
||||||
// add to cache
|
// add to cache
|
||||||
_translators[translator.translatorID] = translator.translatorID;
|
_translators[translator.translatorID] = translator;
|
||||||
for(var type in TRANSLATOR_TYPES) {
|
for(var type in TRANSLATOR_TYPES) {
|
||||||
if(translator.translatorType & TRANSLATOR_TYPES[type]) {
|
if(translator.translatorType & TRANSLATOR_TYPES[type]) {
|
||||||
_cache[type].push(translator);
|
_cache[type].push(translator);
|
||||||
|
@ -101,7 +101,7 @@ Zotero.Translators = new function() {
|
||||||
/**
|
/**
|
||||||
* @class Represents an individual translator
|
* @class Represents an individual translator
|
||||||
* @constructor
|
* @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 {String} translatorID Unique GUID of the translator
|
||||||
* @property {Integer} translatorType Type of the translator (use bitwise & with TRANSLATOR_TYPES to read)
|
* @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} label Human-readable name of the translator
|
||||||
|
|
Loading…
Reference in New Issue
Block a user