MCPcopy
hub / github.com/angular-ui/ui-grid / assertNoDuplicate

Function assertNoDuplicate

lib/test/angular/1.8.0/angular.js:11037–11050  ·  view source on GitHub ↗
(what, previousDirective, directive, element)

Source from the content-addressed store, hash-verified

11035 }
11036
11037 function assertNoDuplicate(what, previousDirective, directive, element) {
11038
11039 function wrapModuleNameIfDefined(moduleName) {
11040 return moduleName ?
11041 (' (module: ' + moduleName + ')') :
11042 '';
11043 }
11044
11045 if (previousDirective) {
11046 throw $compileMinErr('multidir', 'Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}',
11047 previousDirective.name, wrapModuleNameIfDefined(previousDirective.$$moduleName),
11048 directive.name, wrapModuleNameIfDefined(directive.$$moduleName), what, startingTag(element));
11049 }
11050 }
11051
11052
11053 function addTextInterpolateDirective(directives, text) {

Callers 1

applyDirectivesToNodeFunction · 0.70

Calls 2

wrapModuleNameIfDefinedFunction · 0.70
startingTagFunction · 0.70

Tested by

no test coverage detected