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

Commit 202087f

Browse files
committed
style($compile): clarify argument name
1 parent 6d0b325 commit 202087f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ng/compile.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -585,11 +585,11 @@ function $CompileProvider($provide) {
585585
* @param {Object} templateAttrs The shared attribute function
586586
* @param {function(angular.Scope[, cloneAttachFn]} transcludeFn A linking function, where the
587587
* scope argument is auto-generated to the new child of the transcluded parent scope.
588-
* @param {DOMElement} $rootElement If we are working on the root of the compile tree then this
589-
* argument has the root jqLite array so that we can replace widgets on it.
588+
* @param {JQLite} jqCollection If we are working on the root of the compile tree then this
589+
* argument has the root jqLite array so that we can replace nodes on it.
590590
* @returns linkFn
591591
*/
592-
function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn, $rootElement) {
592+
function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn, jqCollection) {
593593
var terminalPriority = -Number.MAX_VALUE,
594594
preLinkFns = [],
595595
postLinkFns = [],
@@ -643,7 +643,7 @@ function $CompileProvider($provide) {
643643
$compileNode = templateAttrs.$$element =
644644
jqLite(document.createComment(' ' + directiveName + ': ' + templateAttrs[directiveName] + ' '));
645645
compileNode = $compileNode[0];
646-
replaceWith($rootElement, jqLite($template[0]), compileNode);
646+
replaceWith(jqCollection, jqLite($template[0]), compileNode);
647647
childTranscludeFn = compile($template, transcludeFn, terminalPriority);
648648
} else {
649649
$template = jqLite(JQLiteClone(compileNode)).contents();
@@ -672,7 +672,7 @@ function $CompileProvider($provide) {
672672
throw new Error(MULTI_ROOT_TEMPLATE_ERROR + directiveValue);
673673
}
674674

675-
replaceWith($rootElement, $compileNode, compileNode);
675+
replaceWith(jqCollection, $compileNode, compileNode);
676676

677677
var newTemplateAttrs = {$attr: {}};
678678

@@ -700,7 +700,7 @@ function $CompileProvider($provide) {
700700
assertNoDuplicate('template', templateDirective, directive, $compileNode);
701701
templateDirective = directive;
702702
nodeLinkFn = compileTemplateUrl(directives.splice(i, directives.length - i),
703-
nodeLinkFn, $compileNode, templateAttrs, $rootElement, directive.replace,
703+
nodeLinkFn, $compileNode, templateAttrs, jqCollection, directive.replace,
704704
childTranscludeFn);
705705
ii = directives.length;
706706
} else if (directive.compile) {

0 commit comments

Comments
 (0)