From 676799271e98242043e1bb711b3119b1a79b9a1c Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 24 Feb 2018 22:39:34 -0500 Subject: [PATCH] Fx60 compatibility: Update old-style shorthand function definitions --- chrome/content/zotero/bindings/itembox.xml | 2 +- chrome/content/zotero/bindings/tagsbox.xml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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) {