(transcludedScope, cloneFn, controllers, futureParentElement, containingScope)
| 9384 | |
| 9385 | function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) { |
| 9386 | function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) { |
| 9387 | |
| 9388 | if (!transcludedScope) { |
| 9389 | transcludedScope = scope.$new(false, containingScope); |
| 9390 | transcludedScope.$$transcluded = true; |
| 9391 | } |
| 9392 | |
| 9393 | return transcludeFn(transcludedScope, cloneFn, { |
| 9394 | parentBoundTranscludeFn: previousBoundTranscludeFn, |
| 9395 | transcludeControllers: controllers, |
| 9396 | futureParentElement: futureParentElement |
| 9397 | }); |
| 9398 | } |
| 9399 | |
| 9400 | // We need to attach the transclusion slots onto the `boundTranscludeFn` |
| 9401 | // so that they are available inside the `controllersBoundTransclude` function |
no outgoing calls
no test coverage detected