diff options
| author | Igor Minar | 2012-12-03 20:03:24 +0100 |
|---|---|---|
| committer | Igor Minar | 2013-05-09 05:23:39 -0700 |
| commit | 8f8510fc22fe434a55d3cc3ef78bc168f1a8b606 (patch) | |
| tree | 40bcef8bc7604e62828dbd953addecf40eb53c11 /src | |
| parent | 1e99ea6a5105e496616c38402e21e31ad74d34ba (diff) | |
| download | angular.js-8f8510fc22fe434a55d3cc3ef78bc168f1a8b606.tar.bz2 | |
style($compile): clarify argument name
Diffstat (limited to 'src')
| -rw-r--r-- | src/ng/compile.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js index 4f024de0..371617fe 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -579,11 +579,11 @@ function $CompileProvider($provide) { * @param {Object} templateAttrs The shared attribute function * @param {function(angular.Scope[, cloneAttachFn]} transcludeFn A linking function, where the * scope argument is auto-generated to the new child of the transcluded parent scope. - * @param {DOMElement} $rootElement If we are working on the root of the compile tree then this - * argument has the root jqLite array so that we can replace widgets on it. + * @param {JQLite} jqCollection If we are working on the root of the compile tree then this + * argument has the root jqLite array so that we can replace nodes on it. * @returns linkFn */ - function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn, $rootElement) { + function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn, jqCollection) { var terminalPriority = -Number.MAX_VALUE, preLinkFns = [], postLinkFns = [], @@ -637,7 +637,7 @@ function $CompileProvider($provide) { $compileNode = templateAttrs.$$element = jqLite(document.createComment(' ' + directiveName + ': ' + templateAttrs[directiveName] + ' ')); compileNode = $compileNode[0]; - replaceWith($rootElement, jqLite($template[0]), compileNode); + replaceWith(jqCollection, jqLite($template[0]), compileNode); childTranscludeFn = compile($template, transcludeFn, terminalPriority); } else { $template = jqLite(JQLiteClone(compileNode)).contents(); @@ -661,7 +661,7 @@ function $CompileProvider($provide) { throw new Error(MULTI_ROOT_TEMPLATE_ERROR + directiveValue); } - replaceWith($rootElement, $compileNode, compileNode); + replaceWith(jqCollection, $compileNode, compileNode); var newTemplateAttrs = {$attr: {}}; @@ -689,7 +689,7 @@ function $CompileProvider($provide) { assertNoDuplicate('template', templateDirective, directive, $compileNode); templateDirective = directive; nodeLinkFn = compileTemplateUrl(directives.splice(i, directives.length - i), - nodeLinkFn, $compileNode, templateAttrs, $rootElement, directive.replace, + nodeLinkFn, $compileNode, templateAttrs, jqCollection, directive.replace, childTranscludeFn); ii = directives.length; } else if (directive.compile) { |
