Bug 1497132 - Fix broken constructor of ActivityMgrListener. r=jorgk DONTBUILD
authorGeoff Lankow <geoff@darktrojan.net>
Mon, 08 Oct 2018 21:18:34 +1300
changeset 33333 9ebf403d5a03ecbe6a1714f218a5cdf30de517b2
parent 33332 66a106452d933ed5485af880731cf83918fe47da
child 33334 5aca0faf144579996c8d11dee4c37c7abf2443af
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersjorgk
bugs1497132
Bug 1497132 - Fix broken constructor of ActivityMgrListener. r=jorgk DONTBUILD
mail/components/activity/content/activity.js
--- a/mail/components/activity/content/activity.js
+++ b/mail/components/activity/content/activity.js
@@ -14,24 +14,16 @@ var activityObject = {
   _activityLogger: Log4Moz.getConfiguredLogger("activitymgr"),
   _ignoreNotifications: false,
   _groupCache: new Map(),
 
   selectAll() {
     this._activitiesView.selectAll();
   },
 
-  // An object to monitor nsActivityManager operations. This class acts as
-  // binding layer between nsActivityManager and nsActivityManagerUI objects.
-
-  /**
-   * Note: The prototype for this function is set at the bottom of this file.
-   */
-  ActivityMgrListener() {},
-
   // Utility Functions for Activity binding management
 
   /**
    * Creates the proper binding for the given activity
    */
   createActivityBinding(aActivity) {
     let bindingName = aActivity.bindingName;
     let binding = document.createElement(bindingName);
@@ -274,18 +266,20 @@ var activityObject = {
             parent.focus();
           }
         }
         break;
     }
   },
 };
 
+// An object to monitor nsActivityManager operations. This class acts as
+// binding layer between nsActivityManager and nsActivityManagerUI objects.
+activityObject.ActivityMgrListener = function() {};
 activityObject.ActivityMgrListener.prototype = {
-
   onAddedActivity(aID, aActivity) {
     activityObject._activityLogger.info(`added activity: ${aID} ${aActivity}`);
     if (!activityObject._ignoreNotifications)
       activityObject.addActivityBinding(aID, aActivity);
   },
 
   onRemovedActivity(aID) {
     if (!activityObject._ignoreNotifications)