(pre, post, attrStart, attrEnd)
| 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) { |
no test coverage detected