From a1e27c401b868620291f34fcd766b87ff62d649b Mon Sep 17 00:00:00 2001 From: Frank Bennett Date: Wed, 9 Oct 2024 14:42:52 +0900 Subject: [PATCH] Use less misleading variable name --- .../content/zotero/xpcom/jurismMapExtensions.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/chrome/content/zotero/xpcom/jurismMapExtensions.js b/chrome/content/zotero/xpcom/jurismMapExtensions.js index 2069df23e27..c9683115e5e 100644 --- a/chrome/content/zotero/xpcom/jurismMapExtensions.js +++ b/chrome/content/zotero/xpcom/jurismMapExtensions.js @@ -167,19 +167,19 @@ Zotero.Jurism.MapTools = { }, getEncodeField: function(zField, cslMap) { - for (var cField in cslMap) { - if ("string" === typeof cslMap[cField]) { - if (cslMap[cField] === zField) { - return cField; + for (var mapField in cslMap) { + if ("string" === typeof cslMap[mapField]) { + if (cslMap[mapField] === zField) { + return mapField; } } else { - if (cField === "shortTitle") { + if (mapField === "shortTitle") { continue; } - for (var i=0,ilen=cslMap[cField].length; i