Bug 1567858 - Mark mini-month as implementing calIObserver; r+a=pmorris THUNDERBIRD_69_0b3_BUILD2 THUNDERBIRD_69_0b3_RELEASE
authorGeoff Lankow <geoff@darktrojan.net>
Tue, 23 Jul 2019 15:50:50 +1200
changeset 36163 f0ec578d1c07ac3a724a4574546347edd62c4423
parent 36162 b12c70add56bdfaa5d83689db7bd97940ba27b35
child 36164 69bdd36539ad04bcc9576620737a83e6340b256c
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
bugs1567858
Bug 1567858 - Mark mini-month as implementing calIObserver; r+a=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);
 }