www

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

commit 0fbae77456a74ff5b4503b863a36fe231f43ba15
parent dce9ff304fe96c1564e5dbbe63db143cceb085e6
Author: Aurimas Vinckevicius <aurimas.dev@gmail.com>
Date:   Mon,  3 Aug 2015 16:15:24 -0500

Don't use for-in to iterate over arrays in itemFromCSLJSON

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

diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js @@ -1667,7 +1667,7 @@ Zotero.Utilities = { for(var variable in CSL_TEXT_MAPPINGS) { if(variable in cslItem) { var textMappings = CSL_TEXT_MAPPINGS[variable]; - for(var i in textMappings) { + for(var i=0; i<textMappings.length; i++) { var field = textMappings[i], fieldID = Zotero.ItemFields.getID(field); if(Zotero.ItemFields.isBaseField(fieldID)) {