Fix problems in annotations that prvented validateAsync and validate functions from appearing in API docs.

This commit is contained in:
crandmck 2015-03-03 16:58:19 -08:00
parent 4bbbf7906e
commit e81415ceda
1 changed files with 7 additions and 5 deletions

View File

@ -170,8 +170,10 @@ Validatable.validatesFormatOf = getConfigurator('format');
* user.name = 'bad'; * user.name = 'bad';
* user.isValid(); // false * user.isValid(); // false
* *
* @nocode * @param {String} propertyName Property name to validate.
* @see helper/validateCustom * @param {Function} validatorFn Custom validation function.
* @options {Object} Options See below.
* @property {String} message Optional error message if property is not valid. Default error message: " is invalid".
*/ */
Validatable.validate = getConfigurator('custom'); Validatable.validate = getConfigurator('custom');
@ -200,9 +202,9 @@ Validatable.validate = getConfigurator('custom');
* isValid; // false * isValid; // false
* }) * })
*``` *```
* @async * @param {String} propertyName Property name to validate.
* @nocode * @options {Object} Options See below
* @see helper/validateCustom * @property {String} message Optional error message if property is not valid. Default error message: " is invalid".
*/ */
Validatable.validateAsync = getConfigurator('custom', {async: true}); Validatable.validateAsync = getConfigurator('custom', {async: true});