Stopped validation from automatically running on change.
This commit is contained in:
@@ -149,15 +149,6 @@ IgniteTemplate.prototype.validate = function (callback) {
|
|||||||
//Setup the validators array if it doesn't exist.
|
//Setup the validators array if it doesn't exist.
|
||||||
if (!this._validators) {
|
if (!this._validators) {
|
||||||
this._validators = [];
|
this._validators = [];
|
||||||
|
|
||||||
//Setup an event for change to run the validators.
|
|
||||||
this.on("change", () => {
|
|
||||||
for (var i = 0; i < this._validators.length; i++) {
|
|
||||||
if (!this._validators[i]()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Register a new validator
|
//Register a new validator
|
||||||
|
|||||||
Reference in New Issue
Block a user