From f09871a1ee7a3fee71ecc3261146798573f40bb1 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 19 Sep 2014 20:39:23 -0400 Subject: [PATCH] Convert additional for..in loops to for loops in getDisplayTitle() --- chrome/content/zotero/xpcom/data/item.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index f24a83dcc1..3eaeca9879 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -877,11 +877,12 @@ Zotero.Item.prototype.getDisplayTitle = function (includeAuthorAndDate) { var itemTypeName = Zotero.ItemTypes.getName(itemTypeID); if (!title && (itemTypeID == 8 || itemTypeID == 10)) { // 'letter' and 'interview' itemTypeIDs - var creators = this.getCreators(); - var authors = []; - var participants = []; + let creators = this.getCreators(); + let authors = []; + let participants = []; if (creators) { - for each(var creator in creators) { + for (let i=0; i