(transcludedScope, cloneFn, controllers, futureParentElement, containingScope)
| 8235 | function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) { |
| 8236 | |
| 8237 | var boundTranscludeFn = function(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) { |
| 8238 | |
| 8239 | if (!transcludedScope) { |
| 8240 | transcludedScope = scope.$new(false, containingScope); |
| 8241 | transcludedScope.$$transcluded = true; |
| 8242 | } |
| 8243 | |
| 8244 | return transcludeFn(transcludedScope, cloneFn, { |
| 8245 | parentBoundTranscludeFn: previousBoundTranscludeFn, |
| 8246 | transcludeControllers: controllers, |
| 8247 | futureParentElement: futureParentElement |
| 8248 | }); |
| 8249 | }; |
| 8250 | |
| 8251 | // We need to attach the transclusion slots onto the `boundTranscludeFn` |
| 8252 | // so that they are available inside the `controllersBoundTransclude` function |
no outgoing calls
no test coverage detected