Bug 986349 - Bind |this| to forEach callback function. r=chulee

This commit is contained in:
Henry Chang 2014-03-21 16:43:54 +08:00
parent 4341c8d03f
commit 4e72f18dc2

View File

@ -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) {