www

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

commit 1ab118c9afc384cca647e3b5e245b84e3ace839e
parent b7fc5e66f2412edd4eba487960bf7c11ccadcae2
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 15 Sep 2008 19:54:09 +0000

Don't throw error if there's no Zotero.Styles.lastCSL


Diffstat:
Mchrome/content/zotero/xpcom/cite.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js @@ -172,7 +172,8 @@ Zotero.Style.prototype.__defineGetter__("csl", */ function() { // cache last style - if(Zotero.Styles.cacheTranslatorData && Zotero.Styles.lastCSL.styleID == this.styleID) { + if(Zotero.Styles.cacheTranslatorData && Zotero.Styles.lastCSL && + Zotero.Styles.lastCSL.styleID == this.styleID) { return Zotero.Styles.lastCSL; }