diff --git a/chrome/content/zotero/xpcom/data/items.js b/chrome/content/zotero/xpcom/data/items.js index 7ce154ecde..a05adaca50 100644 --- a/chrome/content/zotero/xpcom/data/items.js +++ b/chrome/content/zotero/xpcom/data/items.js @@ -46,13 +46,7 @@ Zotero.Items = new function() { ['firstCreator', 'numNotes', 'numAttachments'] ); } - - // Make a copy of array - var fields = []; - for each(var field in _primaryFields) { - fields.push(field); - } - return fields; + return _primaryFields; }); this.__defineGetter__('linkedItemPredicate', function () "owl:sameAs"); @@ -605,7 +599,6 @@ Zotero.Items = new function() { } var itemsRows = Zotero.DB.query(sql); var itemIDs = []; - for each(var row in itemsRows) { var itemID = row.itemID; itemIDs.push(itemID);