(transcludedScope, cloneFn, controllers, futureParentElement, containingScope)
| 9274 | |
| 9275 | function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) { |
| 9276 | function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) { |
| 9277 | |
| 9278 | if (!transcludedScope) { |
| 9279 | transcludedScope = scope.$new(false, containingScope); |
| 9280 | transcludedScope.$$transcluded = true; |
| 9281 | } |
| 9282 | |
| 9283 | return transcludeFn(transcludedScope, cloneFn, { |
| 9284 | parentBoundTranscludeFn: previousBoundTranscludeFn, |
| 9285 | transcludeControllers: controllers, |
| 9286 | futureParentElement: futureParentElement |
| 9287 | }); |
| 9288 | } |
| 9289 | |
| 9290 | // We need to attach the transclusion slots onto the `boundTranscludeFn` |
| 9291 | // so that they are available inside the `controllersBoundTransclude` function |
no outgoing calls
no test coverage detected