backbone.validation
backbone.validation copied to clipboard
Add option to stop calling invalid after first instance of failure
Adds stopAfterFirstError
argument to the defaultoptions which is false
by default, so everything should work exactly the same as it always has by default.
If this option is set to true, the invalid
method isn't called anymore after the first instance of an error.
This is useful if you only want to show feedback for the first instance of a failure in a form.