From 07d620b1685fb4eeeeea617a618cc60aefdcad40 Mon Sep 17 00:00:00 2001 From: Tero Parviainen Date: Sat, 30 May 2015 06:15:40 +0100 Subject: [PATCH] refactor($compile): remove unused elementTransclusion argument Remove the unused elementTransclusion argument from createBoundTranscludeFn. Also remove the nodeLinkFn.elementTranscludeOnThisElement attribute, which becomes unnecessary. Closes #9962 --- src/ng/compile.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ng/compile.js b/src/ng/compile.js index 140e5b61559c..8f5002286f9e 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -1423,8 +1423,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) { if (nodeLinkFn.transcludeOnThisElement) { childBoundTranscludeFn = createBoundTranscludeFn( - scope, nodeLinkFn.transclude, parentBoundTranscludeFn, - nodeLinkFn.elementTranscludeOnThisElement); + scope, nodeLinkFn.transclude, parentBoundTranscludeFn); } else if (!nodeLinkFn.templateOnThisElement && parentBoundTranscludeFn) { childBoundTranscludeFn = parentBoundTranscludeFn; @@ -1446,7 +1445,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) { } } - function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn, elementTransclusion) { + function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) { var boundTranscludeFn = function(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) { @@ -1837,7 +1836,6 @@ function $CompileProvider($provide, $$sanitizeUriProvider) { nodeLinkFn.scope = newScopeDirective && newScopeDirective.scope === true; nodeLinkFn.transcludeOnThisElement = hasTranscludeDirective; - nodeLinkFn.elementTranscludeOnThisElement = hasElementTranscludeDirective; nodeLinkFn.templateOnThisElement = hasTemplate; nodeLinkFn.transclude = childTranscludeFn;