Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 5d68c76

Browse files
teropapetebacondarwin
authored andcommitted
refactor($compile): remove unused elementTransclusion argument
Remove the unused elementTransclusion argument from createBoundTranscludeFn. Also remove the nodeLinkFn.elementTranscludeOnThisElement attribute, which becomes unnecessary. Closes #9962 Closes #11985
1 parent 3ef5298 commit 5d68c76

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: src/ng/compile.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1423,8 +1423,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
14231423

14241424
if (nodeLinkFn.transcludeOnThisElement) {
14251425
childBoundTranscludeFn = createBoundTranscludeFn(
1426-
scope, nodeLinkFn.transclude, parentBoundTranscludeFn,
1427-
nodeLinkFn.elementTranscludeOnThisElement);
1426+
scope, nodeLinkFn.transclude, parentBoundTranscludeFn);
14281427

14291428
} else if (!nodeLinkFn.templateOnThisElement && parentBoundTranscludeFn) {
14301429
childBoundTranscludeFn = parentBoundTranscludeFn;
@@ -1446,7 +1445,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
14461445
}
14471446
}
14481447

1449-
function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn, elementTransclusion) {
1448+
function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) {
14501449

14511450
var boundTranscludeFn = function(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) {
14521451

@@ -1837,7 +1836,6 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
18371836

18381837
nodeLinkFn.scope = newScopeDirective && newScopeDirective.scope === true;
18391838
nodeLinkFn.transcludeOnThisElement = hasTranscludeDirective;
1840-
nodeLinkFn.elementTranscludeOnThisElement = hasElementTranscludeDirective;
18411839
nodeLinkFn.templateOnThisElement = hasTemplate;
18421840
nodeLinkFn.transclude = childTranscludeFn;
18431841

0 commit comments

Comments
 (0)