(scope, cloneAttachFn, futureParentElement)
| 8159 | // This is the function that is injected as `$transclude`. |
| 8160 | // Note: all arguments are optional! |
| 8161 | function controllersBoundTransclude(scope, cloneAttachFn, futureParentElement) { |
| 8162 | var transcludeControllers; |
| 8163 | |
| 8164 | // No scope passed in: |
| 8165 | if (!isScope(scope)) { |
| 8166 | futureParentElement = cloneAttachFn; |
| 8167 | cloneAttachFn = scope; |
| 8168 | scope = undefined; |
| 8169 | } |
| 8170 | |
| 8171 | if (hasElementTranscludeDirective) { |
| 8172 | transcludeControllers = elementControllers; |
| 8173 | } |
| 8174 | if (!futureParentElement) { |
| 8175 | futureParentElement = hasElementTranscludeDirective ? $element.parent() : $element; |
| 8176 | } |
| 8177 | return boundTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild); |
| 8178 | } |
| 8179 | } |
| 8180 | } |
| 8181 |
nothing calls this directly
no test coverage detected