зеркало из https://github.com/mozilla/gecko-dev.git
Bug 830522 - unregister enumerationTelephonyCallback. r=vicamo
This commit is contained in:
Родитель
4d1a776995
Коммит
1078507957
|
@ -732,6 +732,14 @@ RILContentHelper.prototype = {
|
|||
|
||||
unregisterTelephonyCallback: function unregisteTelephonyCallback(callback) {
|
||||
this.unregisterCallback("_telephonyCallbacks", callback);
|
||||
|
||||
// We also need to make sure the callback is removed from
|
||||
// _enumerateTelephonyCallbacks.
|
||||
let index = this._enumerateTelephonyCallbacks.indexOf(callback);
|
||||
if (index != -1) {
|
||||
this._enumerateTelephonyCallbacks.splice(index, 1);
|
||||
if (DEBUG) debug("Unregistered enumerateTelephony callback: " + callback);
|
||||
}
|
||||
},
|
||||
|
||||
registerVoicemailCallback: function registerVoicemailCallback(callback) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче