Don't throw error if there's no Zotero.Styles.lastCSL
This commit is contained in:
parent
b7fc5e66f2
commit
1ab118c9af
1 changed files with 2 additions and 1 deletions
|
@ -172,7 +172,8 @@ Zotero.Style.prototype.__defineGetter__("csl",
|
||||||
*/
|
*/
|
||||||
function() {
|
function() {
|
||||||
// cache last style
|
// 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;
|
return Zotero.Styles.lastCSL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue