Bug 1071586 - List WiFi device on WebIDE init. r=paul
authorJ. Ryan Stinnett <jryans@gmail.com>
Tue, 23 Sep 2014 06:45:00 -0400
changeset 222684 d64aba881c45476d110b1b5a285265ba4955b8e7
parent 222683 822ade44d100d8dbf3955f6d62149ef88779210d
child 222685 4f5b01ea7e7c6d9f9d6d897c4c34a6afd2e4e1c6
push id7107
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 17:43:31 +0000
treeherdermozilla-aurora@b4b34e0acc75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspaul
bugs1071586
milestone35.0a1
Bug 1071586 - List WiFi device on WebIDE init. r=paul
browser/devtools/webide/modules/app-manager.js
--- a/browser/devtools/webide/modules/app-manager.js
+++ b/browser/devtools/webide/modules/app-manager.js
@@ -628,16 +628,17 @@ exports.AppManager = AppManager = {
   trackWiFiRuntimes: function() {
     if (!this.isWiFiScanningEnabled) {
       return;
     }
     this._updateWiFiRuntimes = this._updateWiFiRuntimes.bind(this);
     discovery.on("devtools-device-added", this._updateWiFiRuntimes);
     discovery.on("devtools-device-updated", this._updateWiFiRuntimes);
     discovery.on("devtools-device-removed", this._updateWiFiRuntimes);
+    this._updateWiFiRuntimes();
   },
   untrackWiFiRuntimes: function() {
     if (!this.isWiFiScanningEnabled) {
       return;
     }
     discovery.off("devtools-device-added", this._updateWiFiRuntimes);
     discovery.off("devtools-device-updated", this._updateWiFiRuntimes);
     discovery.off("devtools-device-removed", this._updateWiFiRuntimes);