Bug 1558084: Fix 'this' reference in calendar-list-tree. r=pmorris
authorDirk Steinmetz <public@rsjtdrjgfuzkfg.com>
Wed, 12 Jun 2019 00:17:51 +0200
changeset 35832 be5c06a3f4d225c6147368b89f3baa05ccc3dfc7
parent 35831 323c1caa59c5d6e13a9dfb9cd318fe9a6c459774
child 35833 18519908af98b0500d7e21b9e3394eb54143de5c
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewerspmorris
bugs1558084
Bug 1558084: Fix 'this' reference in calendar-list-tree. r=pmorris
calendar/base/content/widgets/calendar-list-tree.js
--- a/calendar/base/content/widgets/calendar-list-tree.js
+++ b/calendar/base/content/widgets/calendar-list-tree.js
@@ -209,17 +209,17 @@
                 onStartBatch() {},
                 onEndBatch() {},
                 onLoad() {},
                 onAddItem(item) {},
                 onModifyItem(newItem, oldItem) {},
                 onDeleteItem(deletedItem) {},
                 onError(calendar, errNo, message) {},
 
-                onPropertyChanged: (calendar, name, value, oldValue) => {
+                onPropertyChanged(calendar, name, value, oldValue) {
                     switch (name) {
                         case "color":
                             // TODO See other TODO in this file about updateStyleSheetForViews
                             if ("updateStyleSheetForViews" in window) {
                                 updateStyleSheetForViews(calendar);
                             }
                             this.listTree.updateCalendarColor(calendar);
                             // Fall through, update item in any case