JS: Fix complaints from jsLint. Review URL: http://codereview.appspot.com/6503088
authorjia.shao.peng <jia.shao.peng@ee073f10-1060-11df-b6a4-87a95322a99c>
Fri, 7 Sep 2012 14:18:23 +0000 (14:18 +0000)
committerjia.shao.peng <jia.shao.peng@ee073f10-1060-11df-b6a4-87a95322a99c>
Fri, 7 Sep 2012 14:18:23 +0000 (14:18 +0000)
git-svn-id: http://libphonenumber.googlecode.com/svn/trunk@523 ee073f10-1060-11df-b6a4-87a95322a99c

javascript/i18n/phonenumbers/asyoutypeformatter.js
javascript/i18n/phonenumbers/phonenumberutil.js

index 16cfcf0..8611528 100644 (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.
index 8574939..0d238b4 100644 (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) {