MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / getDirectiveRequire

Function getDirectiveRequire

lib/test/angular/1.6.7/angular.js:8206–8218  ·  view source on GitHub ↗
(directive)

Source from the content-addressed store, hash-verified

8204 }
8205
8206 function getDirectiveRequire(directive) {
8207 var require = directive.require || (directive.controller && directive.name);
8208
8209 if (!isArray(require) && isObject(require)) {
8210 forEach(require, function(value, key) {
8211 var match = value.match(REQUIRE_PREFIX_REGEXP);
8212 var name = value.substring(match[0].length);
8213 if (!name) require[key] = match[0] + key;
8214 });
8215 }
8216
8217 return require;
8218 }
8219
8220 function getDirectiveRestrict(restrict, name) {
8221 if (restrict && !(isString(restrict) && /[EACM]/.test(restrict))) {

Callers 1

$CompileProviderFunction · 0.70

Calls 3

isObjectFunction · 0.70
forEachFunction · 0.70
isArrayFunction · 0.50

Tested by

no test coverage detected