(scope, cloneAttachFn, futureParentElement)
| 7800 | // This is the function that is injected as `$transclude`. |
| 7801 | // Note: all arguments are optional! |
| 7802 | function controllersBoundTransclude(scope, cloneAttachFn, futureParentElement) { |
| 7803 | var transcludeControllers; |
| 7804 | |
| 7805 | // No scope passed in: |
| 7806 | if (!isScope(scope)) { |
| 7807 | futureParentElement = cloneAttachFn; |
| 7808 | cloneAttachFn = scope; |
| 7809 | scope = undefined; |
| 7810 | } |
| 7811 | |
| 7812 | if (hasElementTranscludeDirective) { |
| 7813 | transcludeControllers = elementControllers; |
| 7814 | } |
| 7815 | if (!futureParentElement) { |
| 7816 | futureParentElement = hasElementTranscludeDirective ? $element.parent() : $element; |
| 7817 | } |
| 7818 | return boundTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild); |
| 7819 | } |
| 7820 | } |
| 7821 | } |
| 7822 |
nothing calls this directly
no test coverage detected