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

Function addLinkFns

test/angular/1.4/angular.js:8405–8424  ·  view source on GitHub ↗
(pre, post, attrStart, attrEnd)

Source from the content-addressed store, hash-verified

8403 ////////////////////
8404
8405 function addLinkFns(pre, post, attrStart, attrEnd) {
8406 if (pre) {
8407 if (attrStart) pre = groupElementsLinkFnWrapper(pre, attrStart, attrEnd);
8408 pre.require = directive.require;
8409 pre.directiveName = directiveName;
8410 if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
8411 pre = cloneAndAnnotateFn(pre, {isolateScope: true});
8412 }
8413 preLinkFns.push(pre);
8414 }
8415 if (post) {
8416 if (attrStart) post = groupElementsLinkFnWrapper(post, attrStart, attrEnd);
8417 post.require = directive.require;
8418 post.directiveName = directiveName;
8419 if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
8420 post = cloneAndAnnotateFn(post, {isolateScope: true});
8421 }
8422 postLinkFns.push(post);
8423 }
8424 }
8425
8426
8427 function getControllers(directiveName, require, $element, elementControllers) {

Callers 1

applyDirectivesToNodeFunction · 0.70

Calls 2

cloneAndAnnotateFnFunction · 0.70

Tested by

no test coverage detected