Browse Source

JS: Fix complaints from jsLint. Review URL: http://codereview.appspot.com/6503088

pull/567/head
Shaopeng Jia 13 years ago
committed by Mihaela Rosca
parent
commit
74921191f8
2 changed files with 8 additions and 7 deletions
  1. +4
    -5
      javascript/i18n/phonenumbers/asyoutypeformatter.js
  2. +4
    -2
      javascript/i18n/phonenumbers/phonenumberutil.js

+ 4
- 5
javascript/i18n/phonenumbers/asyoutypeformatter.js View File

@ -754,8 +754,8 @@ i18n.phonenumbers.AsYouTypeFormatter.prototype.attemptToFormatAccruedDigits_ =
* Combines the national number with any prefix (IDD/+ and country code or
* national prefix) that was collected. A space will be inserted between them if
* the current formatting template indicates this to be suitable.
* @param {string} nationalNumber
* @return {string}
* @param {string} nationalNumber The number to be appended.
* @return {string} The combined number.
* @private
*/
i18n.phonenumbers.AsYouTypeFormatter.prototype.appendNationalNumber_ =
@ -873,9 +873,8 @@ i18n.phonenumbers.AsYouTypeFormatter.prototype.inputAccruedNationalNumber_ =
/**
* Returns true if the current country is a NANPA country and the national
* number begins with the national prefix.
* @return {boolean}
* @return {boolean} true if the current country is a NANPA country and the
* national number begins with the national prefix.
* @private
*/
i18n.phonenumbers.AsYouTypeFormatter.prototype.


+ 4
- 2
javascript/i18n/phonenumbers/phonenumberutil.js View File

@ -1288,8 +1288,10 @@ i18n.phonenumbers.PhoneNumberUtil.normalizeHelper_ =
* Helper function to check if the national prefix formatting rule has the first
* group only, i.e., does not start with the national prefix.
*
* @param {string} nationalPrefixFormattingRule
* @return {boolean}
* @param {string} nationalPrefixFormattingRule The formatting rule for the
* national prefix.
* @return {boolean} true if the national prefix formatting rule has the first
* group only.
*/
i18n.phonenumbers.PhoneNumberUtil.prototype.formattingRuleHasFirstGroupOnly =
function(nationalPrefixFormattingRule) {


Loading…
Cancel
Save