(transcludedScope, cloneFn, controllers, futureParentElement, containingScope)
| 8818 | |
| 8819 | function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) { |
| 8820 | function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) { |
| 8821 | |
| 8822 | if (!transcludedScope) { |
| 8823 | transcludedScope = scope.$new(false, containingScope); |
| 8824 | transcludedScope.$$transcluded = true; |
| 8825 | } |
| 8826 | |
| 8827 | return transcludeFn(transcludedScope, cloneFn, { |
| 8828 | parentBoundTranscludeFn: previousBoundTranscludeFn, |
| 8829 | transcludeControllers: controllers, |
| 8830 | futureParentElement: futureParentElement |
| 8831 | }); |
| 8832 | } |
| 8833 | |
| 8834 | // We need to attach the transclusion slots onto the `boundTranscludeFn` |
| 8835 | // so that they are available inside the `controllersBoundTransclude` function |
no outgoing calls
no test coverage detected