(scope, transcludeFn, previousBoundTranscludeFn, elementTransclusion)
| 7147 | } |
| 7148 | |
| 7149 | function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn, elementTransclusion) { |
| 7150 | |
| 7151 | var boundTranscludeFn = function(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) { |
| 7152 | |
| 7153 | if (!transcludedScope) { |
| 7154 | transcludedScope = scope.$new(false, containingScope); |
| 7155 | transcludedScope.$$transcluded = true; |
| 7156 | } |
| 7157 | |
| 7158 | return transcludeFn(transcludedScope, cloneFn, { |
| 7159 | parentBoundTranscludeFn: previousBoundTranscludeFn, |
| 7160 | transcludeControllers: controllers, |
| 7161 | futureParentElement: futureParentElement |
| 7162 | }); |
| 7163 | }; |
| 7164 | |
| 7165 | return boundTranscludeFn; |
| 7166 | } |
| 7167 | |
| 7168 | /** |
| 7169 | * Looks for directives on the given node and adds them to the directive collection which is |
no outgoing calls
no test coverage detected