From 8f3a6f21e7f3ad0089c36e698902c55fb3c8ed29 Mon Sep 17 00:00:00 2001 From: Gene Lian Date: Fri, 1 Nov 2013 22:45:57 +0800 Subject: [PATCH] Bug 933207 - B2G SMS & MMS: Fire system messages for the delivery reports (follow-up). r=ctai --- dom/mobilemessage/src/gonk/MmsService.js | 4 ++-- dom/system/gonk/RadioInterfaceLayer.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dom/mobilemessage/src/gonk/MmsService.js b/dom/mobilemessage/src/gonk/MmsService.js index 5c927ae8175c..b68d4e4c55bd 100644 --- a/dom/mobilemessage/src/gonk/MmsService.js +++ b/dom/mobilemessage/src/gonk/MmsService.js @@ -1707,7 +1707,7 @@ MmsService.prototype = { address, null, deliveryStatus, - function notifySetDeliveryResult(aRv, aDomMessage) { + (function notifySetDeliveryResult(aRv, aDomMessage) { if (DEBUG) debug("Marking the delivery status is done."); // TODO bug 832140 handle !Components.isSuccessCode(aRv) @@ -1726,7 +1726,7 @@ MmsService.prototype = { // Notifying observers the delivery status is updated. Services.obs.notifyObservers(aDomMessage, topic, null); - }); + }).bind(this)); }, /** diff --git a/dom/system/gonk/RadioInterfaceLayer.js b/dom/system/gonk/RadioInterfaceLayer.js index 3ff4351b420c..f16c079c5dc1 100644 --- a/dom/system/gonk/RadioInterfaceLayer.js +++ b/dom/system/gonk/RadioInterfaceLayer.js @@ -3005,7 +3005,7 @@ RadioInterface.prototype = { context.sms.delivery, response.deliveryStatus, null, - function notifyResult(rv, domMessage) { + (function notifyResult(rv, domMessage) { // TODO bug 832140 handle !Components.isSuccessCode(rv) let topic = (response.deliveryStatus == @@ -3020,7 +3020,7 @@ RadioInterface.prototype = { // Notifying observers the delivery status is updated. Services.obs.notifyObservers(domMessage, topic, null); - }); + }).bind(this)); // Send transaction has ended completely. return false;