From 5688acbdc9c69456937abb3eb4594490ee708a73 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 25 Oct 2008 10:51:01 +0000 Subject: [PATCH] Fix truncated default terms when using custom element (http://forums.zotero.org/discussion/4384/) --- chrome/content/zotero/xpcom/csl.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/xpcom/csl.js b/chrome/content/zotero/xpcom/csl.js index 729165b9f6..5ac4017d38 100644 --- a/chrome/content/zotero/xpcom/csl.js +++ b/chrome/content/zotero/xpcom/csl.js @@ -1485,11 +1485,10 @@ Zotero.CSL.Global = new function() { for(var i in Zotero.CSL.Global._defaultTerms) { termArray[i] = new Object(); for(var j in Zotero.CSL.Global._defaultTerms[i]) { - if(typeof(Zotero.CSL.Global._defaultTerms[i]) == "object") { - termArray[i][j] = [Zotero.CSL.Global._defaultTerms[i][j][0], - Zotero.CSL.Global._defaultTerms[i][j][1]]; + if(typeof(Zotero.CSL.Global._defaultTerms[i][j]) == "object") { + termArray[i][j] = Zotero.CSL.Global._defaultTerms[i][j].concat(); } else { - termArray[i][j] = Zotero.CSL.Global_defaultTerms[i][j]; + termArray[i][j] = Zotero.CSL.Global._defaultTerms[i][j]; } } }