Bug 1610832 - fix calendar-month-base-view.js:254:28 | 'this.selectedDay' is assigned to itself. (no-self-assign). r=pmorris
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Wed, 22 Jan 2020 23:52:23 +0200
changeset 37114 f3245d8cd44dd809348e5685676779c8d2006e8e
parent 37113 3d63a92809a3f5ab76698a1e58c9bec61429bfc1
child 37115 4204fcfc70ae3920e4bf1a1a6e41dafb330182d0
push id2552
push userclokep@gmail.com
push dateMon, 10 Feb 2020 21:24:16 +0000
treeherdercomm-beta@f95a6f4408a3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspmorris
bugs1610832
Bug 1610832 - fix calendar-month-base-view.js:254:28 | 'this.selectedDay' is assigned to itself. (no-self-assign). r=pmorris
calendar/base/content/calendar-month-base-view.js
--- a/calendar/base/content/calendar-month-base-view.js
+++ b/calendar/base/content/calendar-month-base-view.js
@@ -246,16 +246,19 @@ var { cal } = ChromeUtils.import("resour
 
     showDate(date) {
       if (date) {
         this.setDateRange(date.startOfMonth, date.endOfMonth);
         this.selectedDay = date;
       } else {
         this.refresh();
         // Refresh the selected day if it doesn't appear in the view.
+
+        // The selectedDay setter does some work...
+        // eslint-disable-next-line no-self-assign
         this.selectedDay = this.selectedDay;
       }
     }
 
     setDateRange(startDate, endDate) {
       this.rangeStartDate = startDate;
       this.rangeEndDate = endDate;