Closed gravsten closed 8 years ago
These rules are: date, datetime, email, numericality, presence, url.
For example:
ValidationRule.presence = function presence() { var config = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0]; return new ValidationRule('presence', config); };
This doesn't seem to be based on any special handling in these rules, and thus may probably be changed to:
ValidationRule.presence = function presence(config) { return new ValidationRule('presence', config); };
As a result, '@require' would result in config being undefined... without any side effect.
closing- validatejs was dropped in last release
These rules are: date, datetime, email, numericality, presence, url.
For example:
This doesn't seem to be based on any special handling in these rules, and thus may probably be changed to:
As a result, '@require' would result in config being undefined... without any side effect.