From 540280ae2214b7c74fcf23cc6493621e9cf36c9c Mon Sep 17 00:00:00 2001 From: Vincent Chang Date: Mon, 31 Mar 2014 10:30:44 +0800 Subject: [PATCH] Bug 989719 - js error in WifiWorker when doing geolocation and WiFi is disabled. r=chulee --- dom/wifi/WifiWorker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/wifi/WifiWorker.js b/dom/wifi/WifiWorker.js index 12cbb5caa0cf..75b2816a495f 100644 --- a/dom/wifi/WifiWorker.js +++ b/dom/wifi/WifiWorker.js @@ -2584,7 +2584,7 @@ WifiWorker.prototype = { if (count++ >= 3) { timer = null; - this.wantScanResults.splice(this.wantScanResults.indexOf(waitForScanCallback), 1); + self.wantScanResults.splice(self.wantScanResults.indexOf(waitForScanCallback), 1); callback.onfailure(); return; }