mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
style($compile): clarify argument name
This commit is contained in:
parent
6d0b325f7f
commit
202087f03d
1 changed files with 6 additions and 6 deletions
|
|
@ -585,11 +585,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 = [],
|
||||
|
|
@ -643,7 +643,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();
|
||||
|
|
@ -672,7 +672,7 @@ function $CompileProvider($provide) {
|
|||
throw new Error(MULTI_ROOT_TEMPLATE_ERROR + directiveValue);
|
||||
}
|
||||
|
||||
replaceWith($rootElement, $compileNode, compileNode);
|
||||
replaceWith(jqCollection, $compileNode, compileNode);
|
||||
|
||||
var newTemplateAttrs = {$attr: {}};
|
||||
|
||||
|
|
@ -700,7 +700,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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue