MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / addLinkFns

Function addLinkFns

web/static/bower_components/angular/angular.js:8099–8118  ·  view source on GitHub ↗
(pre, post, attrStart, attrEnd)

Source from the content-addressed store, hash-verified

8097 ////////////////////
8098
8099 function addLinkFns(pre, post, attrStart, attrEnd) {
8100 if (pre) {
8101 if (attrStart) pre = groupElementsLinkFnWrapper(pre, attrStart, attrEnd);
8102 pre.require = directive.require;
8103 pre.directiveName = directiveName;
8104 if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
8105 pre = cloneAndAnnotateFn(pre, {isolateScope: true});
8106 }
8107 preLinkFns.push(pre);
8108 }
8109 if (post) {
8110 if (attrStart) post = groupElementsLinkFnWrapper(post, attrStart, attrEnd);
8111 post.require = directive.require;
8112 post.directiveName = directiveName;
8113 if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
8114 post = cloneAndAnnotateFn(post, {isolateScope: true});
8115 }
8116 postLinkFns.push(post);
8117 }
8118 }
8119
8120
8121 function getControllers(directiveName, require, $element, elementControllers) {

Callers 1

applyDirectivesToNodeFunction · 0.85

Calls 2

cloneAndAnnotateFnFunction · 0.85

Tested by

no test coverage detected