diff options
| author | Igor Minar | 2012-12-03 20:03:24 +0100 | 
|---|---|---|
| committer | Igor Minar | 2013-05-08 07:57:33 -0700 | 
| commit | 202087f03da20741b8e4b248e53994a6ff1cce3e (patch) | |
| tree | 04d9f036be70a8491f4594f333c8c0b29068fa06 /src | |
| parent | 6d0b325f7f5b9c1f3cfac9b73c6cd5fc3d1e2af0 (diff) | |
| download | angular.js-202087f03da20741b8e4b248e53994a6ff1cce3e.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 ac8d13ce..3933a31b 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -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) {  | 
