backbone.validation
backbone.validation copied to clipboard
A validation plugin for Backbone.js that validates both your model as well as form input
The GitHub Security Lab reported a potential security vulnerability (GHSL-2020-353) in your project (thedersen/backbone.validation). We are approaching 90 days since our initial report and as per our [coordinated disclosure policy](https://securitylab.github.com/advisories#policy),...
to be compatable with lodash lodash has includes, underscore has contains which is aliased as includes and include.
Below is my code for validating a model but the fn: function doesn't update the msg output when you change the value of the form for e.g if I add...
Example: ``` class SubView extends View { initialize() { // Custom selector. Validation.bind(this.model, { selector: 'data-validate' }); } } class MyView extends View { initialize() { // Standard. Validation.bind(this.model); }...
Just ran into the issue where an old tutorial was used and someone ran `npm install backbone.validation` instead of `backbone-validation` NPM docs have some instructions for deprecating a package https://docs.npmjs.com/cli/deprecate...
Is an extension of the min attribute possible, which only allows greater?
When the entered value is `.2` instead of `0.2`, the value is marked invalid when it is actually valid. While a javascript number can't be written as `.2`, `` values...
When binding collections to Backbone.Validation may be difficult to identify which of the models is invalid. I end up doing something like this: ```javascript Backbone.Validation.bind(this, { valid: this._onValid.bind(this), invalid: this._onInvalid.bind(this),...
Fixed a bug where the computedState wasn't being passed correctly to the validation functions on preValidate (assuming this is the required behaviour, as it is the way the regular validate...
See https://en.wikipedia.org/wiki/Email_address#Local_part