(scope, cloneAttachFn, futureParentElement)
| 8595 | // This is the function that is injected as `$transclude`. |
| 8596 | // Note: all arguments are optional! |
| 8597 | function controllersBoundTransclude(scope, cloneAttachFn, futureParentElement) { |
| 8598 | var transcludeControllers; |
| 8599 | |
| 8600 | // No scope passed in: |
| 8601 | if (!isScope(scope)) { |
| 8602 | futureParentElement = cloneAttachFn; |
| 8603 | cloneAttachFn = scope; |
| 8604 | scope = undefined; |
| 8605 | } |
| 8606 | |
| 8607 | if (hasElementTranscludeDirective) { |
| 8608 | transcludeControllers = elementControllers; |
| 8609 | } |
| 8610 | if (!futureParentElement) { |
| 8611 | futureParentElement = hasElementTranscludeDirective ? $element.parent() : $element; |
| 8612 | } |
| 8613 | return boundTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild); |
| 8614 | } |
| 8615 | } |
| 8616 | } |
| 8617 |
nothing calls this directly
no test coverage detected