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

Function assertNoDuplicate

lib/test/angular/1.5.0/angular.js:9265–9278  ·  view source on GitHub ↗
(what, previousDirective, directive, element)

Source from the content-addressed store, hash-verified

9263 }
9264
9265 function assertNoDuplicate(what, previousDirective, directive, element) {
9266
9267 function wrapModuleNameIfDefined(moduleName) {
9268 return moduleName ?
9269 (' (module: ' + moduleName + ')') :
9270 '';
9271 }
9272
9273 if (previousDirective) {
9274 throw $compileMinErr('multidir', 'Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}',
9275 previousDirective.name, wrapModuleNameIfDefined(previousDirective.$$moduleName),
9276 directive.name, wrapModuleNameIfDefined(directive.$$moduleName), what, startingTag(element));
9277 }
9278 }
9279
9280
9281 function addTextInterpolateDirective(directives, text) {

Callers 1

applyDirectivesToNodeFunction · 0.70

Calls 2

wrapModuleNameIfDefinedFunction · 0.70
startingTagFunction · 0.70

Tested by

no test coverage detected