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

Function addLinkFns

lib/test/angular/1.5.0/angular.js:8770–8789  ·  view source on GitHub ↗
(pre, post, attrStart, attrEnd)

Source from the content-addressed store, hash-verified

8768 ////////////////////
8769
8770 function addLinkFns(pre, post, attrStart, attrEnd) {
8771 if (pre) {
8772 if (attrStart) pre = groupElementsLinkFnWrapper(pre, attrStart, attrEnd);
8773 pre.require = directive.require;
8774 pre.directiveName = directiveName;
8775 if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
8776 pre = cloneAndAnnotateFn(pre, {isolateScope: true});
8777 }
8778 preLinkFns.push(pre);
8779 }
8780 if (post) {
8781 if (attrStart) post = groupElementsLinkFnWrapper(post, attrStart, attrEnd);
8782 post.require = directive.require;
8783 post.directiveName = directiveName;
8784 if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
8785 post = cloneAndAnnotateFn(post, {isolateScope: true});
8786 }
8787 postLinkFns.push(post);
8788 }
8789 }
8790
8791
8792 function getControllers(directiveName, require, $element, elementControllers) {

Callers 1

applyDirectivesToNodeFunction · 0.70

Calls 2

cloneAndAnnotateFnFunction · 0.70

Tested by

no test coverage detected