Bug 1567858 - Mark mini-month as implementing calIObserver; r=pmorris
authorGeoff Lankow <geoff@darktrojan.net>
Tue, 23 Jul 2019 15:50:50 +1200
changeset 35418 6abbce96d21ced1658e7c8465e3648c91d1aeb36
parent 35417 9dc83f991206dd1d32695f6115a27132e718cb0f
child 35419 852ab23d79ee37772f3bdfc2f2e3b768b2b7664e
push id2486
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:24:43 +0000
treeherdercomm-beta@1b30a9a6e7f6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspmorris
bugs1567858
Bug 1567858 - Mark mini-month as implementing calIObserver; r=pmorris
calendar/base/content/widgets/calendar-minimonth.js
--- a/calendar/base/content/widgets/calendar-minimonth.js
+++ b/calendar/base/content/widgets/calendar-minimonth.js
@@ -25,17 +25,17 @@
      * @implements {calIObserver}
      * @implements {calICompositeObserver}
      * @implements {nsIObserver}
      */
     class CalendarMinimonth extends MozXULElement {
         constructor() {
             super();
             // Set up custom interfaces.
-            // calIObserver is not used like the others are, so it is not set up here.
+            this.calIObserver = this.getCustomInterfaceCallback(Ci.calIObserver);
             this.calICompositeObserver = this.getCustomInterfaceCallback(Ci.calICompositeObserver);
             this.calIOperationListener = this.getCustomInterfaceCallback(Ci.calIOperationListener);
             this.nsIObserver = this.getCustomInterfaceCallback(Ci.nsIObserver);
         }
 
         static get inheritedAttributes() {
             return {
                 ".minimonth-header": "readonly,month,year",
@@ -964,15 +964,15 @@
             }
 
             // Remove pref observer.
             Services.prefs.getBranch("").removeObserver("calendar.", this.nsIObserver);
         }
     }
 
     MozXULElement.implementCustomInterface(CalendarMinimonth, [
-        // Ci.calIObserver is omitted since it is not used like the others are.
+        Ci.calIObserver,
         Ci.calICompositeObserver,
         Ci.calIOperationListener,
         Ci.nsIObserver
     ]);
     customElements.define("calendar-minimonth", CalendarMinimonth);
 }