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.isValid(); // false
*
* @nocode
* @see helper/validateCustom
* @param {String} propertyName Property name to validate.
* @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');
@ -200,9 +202,9 @@ Validatable.validate = getConfigurator('custom');
* isValid; // false
* })
*```
* @async
* @nocode
* @see helper/validateCustom
* @param {String} propertyName Property name to validate.
* @options {Object} Options See below
* @property {String} message Optional error message if property is not valid. Default error message: " is invalid".
*/
Validatable.validateAsync = getConfigurator('custom', {async: true});