MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / processParseErrors

Function processParseErrors

code/songhop/www/lib/angular/angular.js:20663–20680  ·  view source on GitHub ↗
(parseValid)

Source from the content-addressed store, hash-verified

20661 processAsyncValidators();
20662
20663 function processParseErrors(parseValid) {
20664 var errorKey = ctrl.$$parserName || 'parse';
20665 if (parseValid === undefined) {
20666 setValidity(errorKey, null);
20667 } else {
20668 setValidity(errorKey, parseValid);
20669 if (!parseValid) {
20670 forEach(ctrl.$validators, function(v, name) {
20671 setValidity(name, null);
20672 });
20673 forEach(ctrl.$asyncValidators, function(v, name) {
20674 setValidity(name, null);
20675 });
20676 return false;
20677 }
20678 }
20679 return true;
20680 }
20681
20682 function processSyncValidators() {
20683 var syncValidatorsValid = true;

Callers 1

angular.jsFile · 0.70

Calls 2

setValidityFunction · 0.70
forEachFunction · 0.70

Tested by

no test coverage detected