Bug 1505031 - stop using the global 'event' object in about:performance, r=felipe a=jcristau
authorFlorian Quèze <florian@queze.net>
Tue, 06 Nov 2018 18:44:37 +0100
changeset 501073 4bf79d20c6444193ca12af354163c448d81a1f44
parent 501072 7d121c076bc72759290367bc86a18e995c8716a4
child 501074 61362de96df954b728a8a9787e1839bc8b15dbc1
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfelipe, jcristau
bugs1505031
milestone64.0
Bug 1505031 - stop using the global 'event' object in about:performance, r=felipe a=jcristau
toolkit/components/aboutperformance/content/aboutPerformance.js
--- a/toolkit/components/aboutperformance/content/aboutPerformance.js
+++ b/toolkit/components/aboutperformance/content/aboutPerformance.js
@@ -1076,17 +1076,17 @@ var View = {
 };
 
 var Control = {
   _openItems: new Set(),
   init() {
     this._initAutorefresh();
     this._initDisplayMode();
     let tbody = document.getElementById("dispatch-tbody");
-    tbody.addEventListener("click", () => {
+    tbody.addEventListener("click", event => {
       this._updateLastMouseEvent();
 
       // Handle showing or hiding subitems of a row.
       let target = event.target;
       if (target.classList.contains("twisty")) {
         let row = target.parentNode.parentNode;
         let id = row.windowId;
         if (target.classList.toggle("open")) {
@@ -1133,17 +1133,17 @@ var Control = {
         row.setAttribute("selected", "true");
         this.selectedRow = row;
       } else if (this.selectedRow) {
         this.selectedRow = null;
       }
     });
 
     // Select the tab of double clicked items.
-    tbody.addEventListener("dblclick", () => {
+    tbody.addEventListener("dblclick", event => {
       let id = parseInt(event.target.parentNode.windowId);
       if (isNaN(id))
         return;
       let found = tabFinder.get(id);
       if (!found || !found.tabbrowser)
         return;
       let {tabbrowser, tab} = found;
       tabbrowser.selectedTab = tab;