diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index 9639e3cf1..e9279b20b 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -1157,7 +1157,7 @@ if (this.eventHandlers['itemtypechange'] && this.eventHandlers['itemtypechange'].length) { var self = this; - this.eventHandlers['itemtypechange'].forEach(function (f) f.bind(self)()); + this.eventHandlers['itemtypechange'].forEach(f => f.bind(self)()); } return true; diff --git a/chrome/content/zotero/bindings/tagsbox.xml b/chrome/content/zotero/bindings/tagsbox.xml index 4db6c6155..0a5edc33c 100644 --- a/chrome/content/zotero/bindings/tagsbox.xml +++ b/chrome/content/zotero/bindings/tagsbox.xml @@ -139,7 +139,7 @@ val.split("/")[1] == 'tagColors') && this.item) { this.reload(); return; } @@ -227,7 +227,7 @@ // Sort tags alphabetically var collation = Zotero.getLocaleCollation(); - tags.sort(function (a, b) collation.compareString(1, a.tag, b.tag)); + tags.sort((a, b) => collation.compareString(1, a.tag, b.tag)); for (let i=0; i val.trim()); // Modifying existing tag with a single new one if (!isNew && tags.length < 2) {