From 75fe33645c943084f417bf5820fb535497fc428c Mon Sep 17 00:00:00 2001 From: "Szu-Yu Chen [:aknow]" Date: Wed, 31 Jul 2013 16:03:57 +0800 Subject: [PATCH] Bug 880643 - Part 2: Address the suggestion from jshint. r=hsinyi --- dom/system/gonk/RILContentHelper.js | 6 +++--- dom/system/gonk/RadioInterfaceLayer.js | 2 +- dom/system/gonk/ril_worker.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) --- dom/system/gonk/RILContentHelper.js | 6 +++--- dom/system/gonk/RadioInterfaceLayer.js | 2 +- dom/system/gonk/ril_worker.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dom/system/gonk/RILContentHelper.js b/dom/system/gonk/RILContentHelper.js index f99502fc136..c7732f43795 100644 --- a/dom/system/gonk/RILContentHelper.js +++ b/dom/system/gonk/RILContentHelper.js @@ -360,7 +360,7 @@ function DOMMMIResult(result) { this.serviceCode = result.serviceCode; this.statusMessage = result.statusMessage; this.additionalInformation = result.additionalInformation; -}; +} DOMMMIResult.prototype = { __exposedProps__: {serviceCode: 'r', statusMessage: 'r', @@ -370,14 +370,14 @@ DOMMMIResult.prototype = { function DOMCLIRStatus(option) { this.n = option.n; this.m = option.m; -}; +} DOMCLIRStatus.prototype = { __exposedProps__ : {n: 'r', m: 'r'} }; function DOMMMIError() { -}; +} DOMMMIError.prototype = { classDescription: "DOMMMIError", classID: DOMMMIERROR_CID, diff --git a/dom/system/gonk/RadioInterfaceLayer.js b/dom/system/gonk/RadioInterfaceLayer.js index 6306bbb439d..462032f5c66 100644 --- a/dom/system/gonk/RadioInterfaceLayer.js +++ b/dom/system/gonk/RadioInterfaceLayer.js @@ -37,7 +37,7 @@ DEBUG = RIL.DEBUG_RIL || debugPref; function debug(s) { dump("-*- RadioInterfaceLayer: " + s + "\n"); -}; +} const RADIOINTERFACELAYER_CID = Components.ID("{2d831c8d-6017-435b-a80c-e5d422810cea}"); diff --git a/dom/system/gonk/ril_worker.js b/dom/system/gonk/ril_worker.js index 3e0d6241291..785ca143e3e 100644 --- a/dom/system/gonk/ril_worker.js +++ b/dom/system/gonk/ril_worker.js @@ -3306,7 +3306,7 @@ let RIL = { mmiServiceCode === MMI_KS_SC_PUK2) { options.errorMsg = MMI_ERROR_KS_BAD_PUK; } - if (options.retryCount != undefined) { + if (options.retryCount !== undefined) { options.additionalInformation = options.retryCount; } } @@ -5346,7 +5346,7 @@ RIL[REQUEST_QUERY_FACILITY_LOCK] = function REQUEST_QUERY_FACILITY_LOCK(length, for (let serviceClassMask = 1; serviceClassMask <= ICC_SERVICE_CLASS_MAX; serviceClassMask <<= 1) { - if ((serviceClassMask & services) != 0) { + if ((serviceClassMask & services) !== 0) { serviceClass.push(MMI_KS_SERVICE_CLASS_MAPPING[serviceClassMask]); } }