Bug 1398630: Follow-up: Fix typo. r=me
authorKris Maglione <maglione.k@gmail.com>
Mon, 11 Sep 2017 16:09:58 -0700
changeset 429721 966b3dcca29215ada9d7ba1e8ff6739537a4b198
parent 429720 775a86f9a091f1b86225ea866f04b166968bced9
child 429722 b1eb321f774988ad39f25a0794fa79e7ebb03233
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1398630
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1398630: Follow-up: Fix typo. r=me MozReview-Commit-ID: 7Wv2WPWRC4L
toolkit/components/extensions/ExtensionUtils.jsm
--- a/toolkit/components/extensions/ExtensionUtils.jsm
+++ b/toolkit/components/extensions/ExtensionUtils.jsm
@@ -152,17 +152,17 @@ class EventEmitter {
    * Removes the given function as a listener for the given event.
    *
    * @param {string} event
    *       The name of the event to stop listening for.
    * @param {function(string, ...any)} listener
    *        The listener function to remove.
    */
   off(event, listener) {
-    let set = this.listeners.get(event);
+    let set = this[LISTENERS].get(event);
     if (set) {
       set.delete(listener);
       set.delete(this[ONCE_MAP].get(listener));
       if (!set.size) {
         this[LISTENERS].delete(event);
       }
     }
   }