mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 998851 - Bind 'this' to callback function. r=vchang
This commit is contained in:
parent
7aac1fff44
commit
dbf41ef2d5
@ -2641,7 +2641,7 @@ WifiWorker.prototype = {
|
||||
self.waitForScan(waitForScanCallback);
|
||||
doScan();
|
||||
function doScan() {
|
||||
WifiManager.scan(true, function (ok) {
|
||||
WifiManager.scan(true, (function (ok) {
|
||||
if (!ok) {
|
||||
if (!timer) {
|
||||
count = 0;
|
||||
@ -2659,7 +2659,7 @@ WifiWorker.prototype = {
|
||||
timer.initWithCallback(doScan, 10000, Ci.nsITimer.TYPE_ONE_SHOT);
|
||||
return;
|
||||
}
|
||||
});
|
||||
}).bind(this));
|
||||
}
|
||||
|
||||
function waitForScanCallback(networks) {
|
||||
|
Loading…
Reference in New Issue
Block a user