Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #14998 from KevinGrandon/bug_956012_update_mobile_…
Browse files Browse the repository at this point in the history
…shims

Bug 956012 - Desktop b2g with local profile is trying to load the SIM / JavaScript error: conn.setVoicePrivacyMode is not a function
  • Loading branch information
KevinGrandon committed Jan 2, 2014
2 parents 3a94cb8 + 23db312 commit fa66acd
Showing 1 changed file with 15 additions and 1 deletion.
Expand Up @@ -24,7 +24,9 @@

function fakeEventListener(type, callback, bubble) {
if (initialized) {
setTimeout(callback.bind(this, { iccId: this.iccId }));
if (typeof callback === 'function') {
setTimeout(callback.bind(this, { iccId: this.iccId }));
}
return;
}

Expand All @@ -45,6 +47,12 @@
getCallForwardingOption: FFOS_RUNTIME.domRequest(1),
setCallWaitingOption: FFOS_RUNTIME.domRequest(),
getCallingLineIdRestriction: FFOS_RUNTIME.domRequest(),
setVoicePrivacyMode: FFOS_RUNTIME.domRequest(),
getVoicePrivacyMode: FFOS_RUNTIME.domRequest(),
setRadioEnabled: FFOS_RUNTIME.domRequest(),
getRadioEnabled: FFOS_RUNTIME.domRequest(),
getPreferredNetworkType: FFOS_RUNTIME.domRequest(),
setPreferredNetworkType: FFOS_RUNTIME.domRequest(),
get data() {
return initialized ? { network: fakeNetwork } : null;
},
Expand All @@ -62,6 +70,12 @@
getCallForwardingOption: FFOS_RUNTIME.domRequest(1),
setCallWaitingOption: FFOS_RUNTIME.domRequest(),
getCallingLineIdRestriction: FFOS_RUNTIME.domRequest(),
setVoicePrivacyMode: FFOS_RUNTIME.domRequest(),
getVoicePrivacyMode: FFOS_RUNTIME.domRequest(),
setRadioEnabled: FFOS_RUNTIME.domRequest(),
getRadioEnabled: FFOS_RUNTIME.domRequest(),
getPreferredNetworkType: FFOS_RUNTIME.domRequest(),
setPreferredNetworkType: FFOS_RUNTIME.domRequest(),
get data() {
return initialized ? { network: fakeNetwork2 } : null;
},
Expand Down

0 comments on commit fa66acd

Please sign in to comment.