backbone-forms
backbone-forms copied to clipboard
What "err.type" used for?
https://github.com/powmedia/backbone-forms/blob/master/src/validators.js#L29
var err = {
type: options.type,
message: _.isFunction(options.message) ? options.message(options) : options.message
};
"type" is too common to search for in the code...
for showing the type of failure, Required, Regexp, custom validator etc. git grep err.type would help narrow it down
Thank you! As I see only tests use it.