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

Function addLinkFns

test/angular/1.2/angular.js:6571–6590  ·  view source on GitHub ↗
(pre, post, attrStart, attrEnd)

Source from the content-addressed store, hash-verified

6569 ////////////////////
6570
6571 function addLinkFns(pre, post, attrStart, attrEnd) {
6572 if (pre) {
6573 if (attrStart) pre = groupElementsLinkFnWrapper(pre, attrStart, attrEnd);
6574 pre.require = directive.require;
6575 pre.directiveName = directiveName;
6576 if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
6577 pre = cloneAndAnnotateFn(pre, {isolateScope: true});
6578 }
6579 preLinkFns.push(pre);
6580 }
6581 if (post) {
6582 if (attrStart) post = groupElementsLinkFnWrapper(post, attrStart, attrEnd);
6583 post.require = directive.require;
6584 post.directiveName = directiveName;
6585 if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
6586 post = cloneAndAnnotateFn(post, {isolateScope: true});
6587 }
6588 postLinkFns.push(post);
6589 }
6590 }
6591
6592
6593 function getControllers(directiveName, require, $element, elementControllers) {

Callers 1

applyDirectivesToNodeFunction · 0.70

Calls 2

cloneAndAnnotateFnFunction · 0.70

Tested by

no test coverage detected