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

Function assertNoDuplicate

lib/test/angular/1.7.0/angular.js:10454–10467  ·  view source on GitHub ↗
(what, previousDirective, directive, element)

Source from the content-addressed store, hash-verified

10452 }
10453
10454 function assertNoDuplicate(what, previousDirective, directive, element) {
10455
10456 function wrapModuleNameIfDefined(moduleName) {
10457 return moduleName ?
10458 (' (module: ' + moduleName + ')') :
10459 '';
10460 }
10461
10462 if (previousDirective) {
10463 throw $compileMinErr('multidir', 'Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}',
10464 previousDirective.name, wrapModuleNameIfDefined(previousDirective.$$moduleName),
10465 directive.name, wrapModuleNameIfDefined(directive.$$moduleName), what, startingTag(element));
10466 }
10467 }
10468
10469
10470 function addTextInterpolateDirective(directives, text) {

Callers 1

applyDirectivesToNodeFunction · 0.70

Calls 2

wrapModuleNameIfDefinedFunction · 0.70
startingTagFunction · 0.70

Tested by

no test coverage detected