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

Function addLinkFns

test/angular/1.3/angular.js:7552–7571  ·  view source on GitHub ↗
(pre, post, attrStart, attrEnd)

Source from the content-addressed store, hash-verified

7550 ////////////////////
7551
7552 function addLinkFns(pre, post, attrStart, attrEnd) {
7553 if (pre) {
7554 if (attrStart) pre = groupElementsLinkFnWrapper(pre, attrStart, attrEnd);
7555 pre.require = directive.require;
7556 pre.directiveName = directiveName;
7557 if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
7558 pre = cloneAndAnnotateFn(pre, {isolateScope: true});
7559 }
7560 preLinkFns.push(pre);
7561 }
7562 if (post) {
7563 if (attrStart) post = groupElementsLinkFnWrapper(post, attrStart, attrEnd);
7564 post.require = directive.require;
7565 post.directiveName = directiveName;
7566 if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
7567 post = cloneAndAnnotateFn(post, {isolateScope: true});
7568 }
7569 postLinkFns.push(post);
7570 }
7571 }
7572
7573
7574 function getControllers(directiveName, require, $element, elementControllers) {

Callers 1

applyDirectivesToNodeFunction · 0.70

Calls 2

cloneAndAnnotateFnFunction · 0.70

Tested by

no test coverage detected