@@ -976,11 +976,11 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
976976
977977 function createBoundTranscludeFn ( scope , transcludeFn , previousBoundTranscludeFn ) {
978978
979- var boundTranscludeFn = function ( transcludedScope , cloneFn , controllers , containingScope ) {
979+ var boundTranscludeFn = function ( transcludedScope , cloneFn , controllers ) {
980980 var scopeCreated = false ;
981981
982982 if ( ! transcludedScope ) {
983- transcludedScope = scope . $new ( false , containingScope ) ;
983+ transcludedScope = scope . $new ( ) ;
984984 transcludedScope . $$transcluded = true ;
985985 scopeCreated = true ;
986986 }
@@ -1592,7 +1592,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
15921592 transcludeControllers = elementControllers ;
15931593 }
15941594
1595- return boundTranscludeFn ( scope , cloneAttachFn , transcludeControllers , scopeToChild ) ;
1595+ return boundTranscludeFn ( scope , cloneAttachFn , transcludeControllers ) ;
15961596 }
15971597 }
15981598 }
@@ -1754,8 +1754,6 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
17541754 boundTranscludeFn = linkQueue . shift ( ) ,
17551755 linkNode = $compileNode [ 0 ] ;
17561756
1757- if ( scope . $$destroyed ) continue ;
1758-
17591757 if ( beforeTemplateLinkNode !== beforeTemplateCompileNode ) {
17601758 var oldClasses = beforeTemplateLinkNode . className ;
17611759
@@ -1786,7 +1784,6 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
17861784
17871785 return function delayedNodeLinkFn ( ignoreChildLinkFn , scope , node , rootElement , boundTranscludeFn ) {
17881786 var childBoundTranscludeFn = boundTranscludeFn ;
1789- if ( scope . $$destroyed ) return ;
17901787 if ( linkQueue ) {
17911788 linkQueue . push ( scope ) ;
17921789 linkQueue . push ( node ) ;
0 commit comments