From 212f14dd5a80f14361a60e6382e98af2b4b02497 Mon Sep 17 00:00:00 2001 From: Krzysztof Mioduszewski Date: Thu, 12 Feb 2015 03:19:00 -0500 Subject: [PATCH] Bug 1132007 - Initialise _iccChannelCalback in RilContentHelper.js. r=echen CLOSED TREE --- dom/system/gonk/RILContentHelper.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dom/system/gonk/RILContentHelper.js b/dom/system/gonk/RILContentHelper.js index 1714c5168d44..77462381851b 100644 --- a/dom/system/gonk/RILContentHelper.js +++ b/dom/system/gonk/RILContentHelper.js @@ -135,6 +135,7 @@ function RILContentHelper() { this.initDOMRequestHelper(/* aWindow */ null, RIL_IPC_MSG_NAMES); this._windowsMap = []; this._iccListeners = []; + this._iccChannelCallback = []; Services.obs.addObserver(this, NS_XPCOM_SHUTDOWN_OBSERVER_ID, false); @@ -593,6 +594,8 @@ RILContentHelper.prototype = { } }, + _iccChannelCallback: null, + _addIccChannelCallback: function(requestId, channelCb) { let cbInterfaces = this._iccChannelCallback; if (!cbInterfaces[requestId] && channelCb) {