Bug 917365 - Fix an exception when starting a simulator. r=paul, a=lsblakk
authorAlexandre Poirot <poirot.alex@gmail.com>
Tue, 17 Sep 2013 09:15:00 +0200
changeset 160356 960b18afe35342ba030956d026197b2384f934fc
parent 160355 fc8be763d914070abc21d0be4f606ba1da0b2534
child 160357 df382c3067170d16142ed37196c98ffd2edc2c6b
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspaul, lsblakk
bugs917365
milestone26.0a2
Bug 917365 - Fix an exception when starting a simulator. r=paul, a=lsblakk
browser/devtools/app-manager/content/connection-footer.js
--- a/browser/devtools/app-manager/content/connection-footer.js
+++ b/browser/devtools/app-manager/content/connection-footer.js
@@ -131,17 +131,17 @@ let UI = {
     this.connection.log("Starting simulator...");
 
     this.simulator = simulator;
     this.simulator.launch({ port: port })
       .then(() => {
         this.connection.log("Simulator ready. Connecting.");
         this.connection.port = port;
         this.connection.host = "localhost";
-        this.connection.once("connected", function() {
+        this.connection.once("connected", () => {
           this.connection.log("Connected to simulator.");
           this.connection.keepConnecting = false;
         });
         this.connection.keepConnecting = true;
         this.connection.connect();
       });
     document.body.classList.remove("show-simulators");
   },