disable caching of citeproc-js items (for now)

This commit is contained in:
Simon Kornblith 2010-08-16 08:48:55 +00:00
parent 64f810dd5a
commit 2f671725b8

View File

@ -98,11 +98,11 @@ Zotero.Cite.System._cache = new Object();
Zotero.Cite.System.retrieveItem = function(item){ Zotero.Cite.System.retrieveItem = function(item){
if(item instanceof Zotero.Item) { if(item instanceof Zotero.Item) {
if(this._cache[item.id]) return this._cache[item.id]; //if(this._cache[item.id]) return this._cache[item.id];
var zoteroItem = item; var zoteroItem = item;
} else { } else {
// is an item ID // is an item ID
if(this._cache[item]) return this._cache[item]; //if(this._cache[item]) return this._cache[item];
var zoteroItem = Zotero.Items.get(item); var zoteroItem = Zotero.Items.get(item);
} }
@ -190,7 +190,7 @@ Zotero.Cite.System.retrieveItem = function(item){
} }
} }
this._cache[zoteroItem.id] = cslItem; //this._cache[zoteroItem.id] = cslItem;
return cslItem; return cslItem;
}; };