MCPcopy Create free account
hub / github.com/angular-ui/ui-router / addLinkFns

Function addLinkFns

test/angular/1.5/angular.js:9385–9404  ·  view source on GitHub ↗
(pre, post, attrStart, attrEnd)

Source from the content-addressed store, hash-verified

9383 ////////////////////
9384
9385 function addLinkFns(pre, post, attrStart, attrEnd) {
9386 if (pre) {
9387 if (attrStart) pre = groupElementsLinkFnWrapper(pre, attrStart, attrEnd);
9388 pre.require = directive.require;
9389 pre.directiveName = directiveName;
9390 if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
9391 pre = cloneAndAnnotateFn(pre, {isolateScope: true});
9392 }
9393 preLinkFns.push(pre);
9394 }
9395 if (post) {
9396 if (attrStart) post = groupElementsLinkFnWrapper(post, attrStart, attrEnd);
9397 post.require = directive.require;
9398 post.directiveName = directiveName;
9399 if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
9400 post = cloneAndAnnotateFn(post, {isolateScope: true});
9401 }
9402 postLinkFns.push(post);
9403 }
9404 }
9405
9406 function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) {
9407 var i, ii, linkFn, isolateScope, controllerScope, elementControllers, transcludeFn, $element,

Callers 1

applyDirectivesToNodeFunction · 0.70

Calls 2

cloneAndAnnotateFnFunction · 0.70

Tested by

no test coverage detected