@@ -918,7 +918,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
918
918
// return a linking function if we have found anything, null otherwise
919
919
return linkFnFound ? compositeLinkFn : null ;
920
920
921
- function compositeLinkFn ( scope , nodeList , $rootElement , boundTranscludeFn ) {
921
+ function compositeLinkFn ( scope , nodeList , $rootElement , parentBoundTranscludeFn ) {
922
922
var nodeLinkFn , childLinkFn , node , $node , childScope , i , ii , n , childBoundTranscludeFn ;
923
923
924
924
// copy nodeList so that linking doesn't break due to live list updates.
@@ -945,17 +945,17 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
945
945
// We need to create a new boundTranscludeFn if
946
946
// - a directive on this element wants to transclude
947
947
// or
948
- // - there is no boundTranscludeFn already and a transcludeFn was passed in
949
- if ( nodeLinkFn . transcludeOnThisElement || ( ! boundTranscludeFn && transcludeFn ) ) {
948
+ // - there is no parentBoundTranscludeFn already and a transcludeFn was passed in
949
+ if ( nodeLinkFn . transcludeOnThisElement || ( ! parentBoundTranscludeFn && transcludeFn ) ) {
950
950
childBoundTranscludeFn = createBoundTranscludeFn ( scope , nodeLinkFn . transclude || transcludeFn ) ;
951
951
} else {
952
- childBoundTranscludeFn = boundTranscludeFn ;
952
+ childBoundTranscludeFn = parentBoundTranscludeFn ;
953
953
}
954
954
955
955
nodeLinkFn ( childLinkFn , childScope , node , $rootElement , childBoundTranscludeFn ) ;
956
956
957
957
} else if ( childLinkFn ) {
958
- childLinkFn ( scope , node . childNodes , undefined , boundTranscludeFn ) ;
958
+ childLinkFn ( scope , node . childNodes , undefined , parentBoundTranscludeFn ) ;
959
959
}
960
960
}
961
961
}
0 commit comments