зеркало из https://github.com/mozilla/pjs.git
Bug 728886 - Part 0: Use constants when initializing RIL state. r=qDot
This commit is contained in:
Родитель
496f39f763
Коммит
1c8e8e8be2
|
@ -142,8 +142,8 @@ function RadioInterfaceLayer() {
|
|||
this.worker.onmessage = this.onmessage.bind(this);
|
||||
debug("Starting Worker\n");
|
||||
this.radioState = {
|
||||
radioState: null,
|
||||
cardState: null,
|
||||
radioState: RIL.GECKO_RADIOSTATE_UNAVAILABLE,
|
||||
cardState: RIL.GECKO_CARDSTATE_UNAVAILABLE,
|
||||
connected: null,
|
||||
roaming: null,
|
||||
signalStrength: null,
|
||||
|
|
|
@ -1123,7 +1123,7 @@ const GECKO_NETWORK_STATE_DISCONNECTING = 3;
|
|||
const GECKO_NETWORK_STATE_DISCONNECTED = 4;
|
||||
|
||||
// Other Gecko-specific constants
|
||||
const GECKO_RADIOSTATE_UNAVAILABLE = "unavailable";
|
||||
const GECKO_RADIOSTATE_UNAVAILABLE = null;
|
||||
const GECKO_RADIOSTATE_OFF = "off";
|
||||
const GECKO_RADIOSTATE_READY = "ready";
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче