(transcludedScope, cloneFn, controllers, futureParentElement, containingScope)
| 9934 | |
| 9935 | function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) { |
| 9936 | function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) { |
| 9937 | |
| 9938 | if (!transcludedScope) { |
| 9939 | transcludedScope = scope.$new(false, containingScope); |
| 9940 | transcludedScope.$$transcluded = true; |
| 9941 | } |
| 9942 | |
| 9943 | return transcludeFn(transcludedScope, cloneFn, { |
| 9944 | parentBoundTranscludeFn: previousBoundTranscludeFn, |
| 9945 | transcludeControllers: controllers, |
| 9946 | futureParentElement: futureParentElement |
| 9947 | }); |
| 9948 | } |
| 9949 | |
| 9950 | // We need to attach the transclusion slots onto the `boundTranscludeFn` |
| 9951 | // so that they are available inside the `controllersBoundTransclude` function |
no outgoing calls
no test coverage detected