(scope, transcludeFn, previousBoundTranscludeFn)
| 6163 | } |
| 6164 | |
| 6165 | function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) { |
| 6166 | |
| 6167 | var boundTranscludeFn = function(transcludedScope, cloneFn, controllers) { |
| 6168 | var scopeCreated = false; |
| 6169 | |
| 6170 | if (!transcludedScope) { |
| 6171 | transcludedScope = scope.$new(); |
| 6172 | transcludedScope.$$transcluded = true; |
| 6173 | scopeCreated = true; |
| 6174 | } |
| 6175 | |
| 6176 | var clone = transcludeFn(transcludedScope, cloneFn, controllers, previousBoundTranscludeFn); |
| 6177 | if (scopeCreated) { |
| 6178 | clone.on('$destroy', function() { transcludedScope.$destroy(); }); |
| 6179 | } |
| 6180 | return clone; |
| 6181 | }; |
| 6182 | |
| 6183 | return boundTranscludeFn; |
| 6184 | } |
| 6185 | |
| 6186 | /** |
| 6187 | * Looks for directives on the given node and adds them to the directive collection which is |
no outgoing calls
no test coverage detected