Bug 1346797 - Fix calendar eslint issues - Fix mozilla/var-only-at-top-level issues. r=MakeMyDay
authoreslint <eslint@bugzilla.kewis.ch>
Sun, 30 Jul 2017 13:32:52 +0200
changeset 29136 19af38e2d4b143f9d671a885be48eb0610e521d3
parent 29135 1ab10b6c3b56a2ba0f39021d923db1ef21b0761e
child 29137 938e0676a3cd4e0b1af046d115d2f224bc87a749
push id2068
push userclokep@gmail.com
push dateMon, 13 Nov 2017 19:02:14 +0000
treeherdercomm-beta@9c7e7ce8672b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMakeMyDay
bugs1346797
Bug 1346797 - Fix calendar eslint issues - Fix mozilla/var-only-at-top-level issues. r=MakeMyDay MozReview-Commit-ID: 9q7scbMF9hE
calendar/base/content/widgets/minimonth.xml
--- a/calendar/base/content/widgets/minimonth.xml
+++ b/calendar/base/content/widgets/minimonth.xml
@@ -1078,17 +1078,17 @@
                             this.firstDate,
                             this.lastDate,
                             this);
         ]]></body>
       </method>
 
       <method name="updateAccessibleLabel">
         <body><![CDATA[
-          var label;
+          let label;
           if (this.mValue) {
               let dateFormatter =
                   Services.intl.createDateTimeFormat(undefined, { dateStyle: "long" });
               label = dateFormatter.format(this.mValue);
           } else {
               label = cal.calGetString("calendar", "minimonthNoSelectedDate");
           }
           this.setAttribute("aria-label", label);
@@ -1247,17 +1247,17 @@
         ]]></body>
       </method>
 
       <method name="moveByOffset">
         <parameter name="aYears"/>
         <parameter name="aMonths"/>
         <parameter name="aDays"/>
         <body><![CDATA[
-          var day = new Date(this.mFocused.date.getFullYear() + aYears,
+          let day = new Date(this.mFocused.date.getFullYear() + aYears,
                              this.mFocused.date.getMonth() + aMonths,
                              this.mFocused.date.getDate() + aDays);
           this.focusDate(day);
         ]]></body>
       </method>
 
       <method name="focusCalendar">
         <body><![CDATA[