MCPcopy Index your code
hub / github.com/angular-ui/ui-router / testFlags

Function testFlags

test/angular/1.2/angular.js:17136–17147  ·  view source on GitHub ↗
(validity, flags)

Source from the content-addressed store, hash-verified

17134}
17135
17136function testFlags(validity, flags) {
17137 var i, flag;
17138 if (flags) {
17139 for (i=0; i<flags.length; ++i) {
17140 flag = flags[i];
17141 if (validity[flag]) {
17142 return true;
17143 }
17144 }
17145 }
17146 return false;
17147}
17148
17149// Pass validity so that behaviour can be mocked easier.
17150function addNativeHtml5Validators(ctrl, validatorName, badFlags, ignoreFlags, validity) {

Callers 1

validatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected