mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Bug 986349 - Bind |this| to forEach callback function. r=chulee
This commit is contained in:
parent
4341c8d03f
commit
4e72f18dc2
@ -2423,9 +2423,9 @@ WifiWorker.prototype = {
|
||||
|
||||
_clearPendingRequest: function() {
|
||||
if (this._domRequest.length === 0) return;
|
||||
this._domRequest.forEach(function(req) {
|
||||
this._domRequest.forEach((function(req) {
|
||||
this._sendMessage(req.name + ":Return", false, "Wifi is disabled", req.msg);
|
||||
});
|
||||
}).bind(this));
|
||||
},
|
||||
|
||||
receiveMessage: function MessageManager_receiveMessage(aMessage) {
|
||||
|
Loading…
Reference in New Issue
Block a user