aurelia-validation
Advanced tools
Comparing version 0.9.1 to 0.9.2
{ | ||
"name": "aurelia-validation", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": "This is a validation interface for hooking in to Aurelia's binding and templating engines.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
{ | ||
"name": "aurelia-validation", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": "This is a validation interface for hooking in to Aurelia's binding and templating engines.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -8,3 +8,3 @@ # aurelia-validation | ||
This is a plugin that will allow using indicative in your Aurelia application for expressive validation. Karma/Jasmine testing is also configured. | ||
This plugin supplies generic validation components for your Aurelia application. It also defines interfaces to be implemented by validation engines and validation renderers. | ||
@@ -11,0 +11,0 @@ > To keep up to date on [Aurelia](http://www.aurelia.io/), please visit and subscribe to [the official blog](http://blog.durandal.io/) and [our email list](http://durandal.us10.list-manage1.com/subscribe?u=dae7661a3872ee02b519f6f29&id=3de6801ccc). We also invite you to [follow us on twitter](https://twitter.com/aureliaeffect). If you have questions, please [join our community on Gitter](https://gitter.im/aurelia/discuss). If you would like to have deeper insight into our development process, please install the [ZenHub](https://zenhub.io) Chrome or Firefox Extension and visit any of our repository's boards. You can get an overview of all Aurelia work by visiting [the framework board](https://github.com/aurelia/framework#boards). |
@@ -104,20 +104,10 @@ import {inject} from 'aurelia-dependency-injection'; | ||
_updateErrors(errors, newErrors, target) { | ||
let i = 0; | ||
while (i < errors.length) { | ||
const error = errors[i]; | ||
const index = newErrors.findIndex(x => x.rule === error.rule); | ||
if (index === -1) { | ||
errors.splice(i, 1); | ||
this._unrenderError(error, target); | ||
continue; | ||
} | ||
newErrors.splice(index, 1); | ||
i++; | ||
let error; | ||
while (error = errors.pop()) { | ||
this._unrenderError(error, target); | ||
} | ||
i = 0; | ||
while (i < newErrors.length) { | ||
const error = newErrors[i]; | ||
for (let i = 0, ii = newErrors.length; i < ii; i++) { | ||
error = newErrors[i]; | ||
errors.push(error); | ||
this._renderError(error, target); | ||
i++; | ||
} | ||
@@ -124,0 +114,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97
186528
4013