@@ -976,11 +976,11 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
976
976
977
977
function createBoundTranscludeFn ( scope , transcludeFn , previousBoundTranscludeFn ) {
978
978
979
- var boundTranscludeFn = function ( transcludedScope , cloneFn , controllers , containingScope ) {
979
+ var boundTranscludeFn = function ( transcludedScope , cloneFn , controllers ) {
980
980
var scopeCreated = false ;
981
981
982
982
if ( ! transcludedScope ) {
983
- transcludedScope = scope . $new ( false , containingScope ) ;
983
+ transcludedScope = scope . $new ( ) ;
984
984
transcludedScope . $$transcluded = true ;
985
985
scopeCreated = true ;
986
986
}
@@ -1592,7 +1592,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1592
1592
transcludeControllers = elementControllers ;
1593
1593
}
1594
1594
1595
- return boundTranscludeFn ( scope , cloneAttachFn , transcludeControllers , scopeToChild ) ;
1595
+ return boundTranscludeFn ( scope , cloneAttachFn , transcludeControllers ) ;
1596
1596
}
1597
1597
}
1598
1598
}
@@ -1754,8 +1754,6 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1754
1754
boundTranscludeFn = linkQueue . shift ( ) ,
1755
1755
linkNode = $compileNode [ 0 ] ;
1756
1756
1757
- if ( scope . $$destroyed ) continue ;
1758
-
1759
1757
if ( beforeTemplateLinkNode !== beforeTemplateCompileNode ) {
1760
1758
var oldClasses = beforeTemplateLinkNode . className ;
1761
1759
@@ -1786,7 +1784,6 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
1786
1784
1787
1785
return function delayedNodeLinkFn ( ignoreChildLinkFn , scope , node , rootElement , boundTranscludeFn ) {
1788
1786
var childBoundTranscludeFn = boundTranscludeFn ;
1789
- if ( scope . $$destroyed ) return ;
1790
1787
if ( linkQueue ) {
1791
1788
linkQueue . push ( scope ) ;
1792
1789
linkQueue . push ( node ) ;
0 commit comments