(transcludedScope, cloneFn, controllers, futureParentElement, containingScope)
| 9345 | |
| 9346 | function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) { |
| 9347 | function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) { |
| 9348 | |
| 9349 | if (!transcludedScope) { |
| 9350 | transcludedScope = scope.$new(false, containingScope); |
| 9351 | transcludedScope.$$transcluded = true; |
| 9352 | } |
| 9353 | |
| 9354 | return transcludeFn(transcludedScope, cloneFn, { |
| 9355 | parentBoundTranscludeFn: previousBoundTranscludeFn, |
| 9356 | transcludeControllers: controllers, |
| 9357 | futureParentElement: futureParentElement |
| 9358 | }); |
| 9359 | } |
| 9360 | |
| 9361 | // We need to attach the transclusion slots onto the `boundTranscludeFn` |
| 9362 | // so that they are available inside the `controllersBoundTransclude` function |
no outgoing calls
no test coverage detected