diff options
| author | Igor Minar | 2012-05-03 21:50:55 -0700 | 
|---|---|---|
| committer | Igor Minar | 2012-05-03 23:40:43 -0700 | 
| commit | 1564b82b49d996503fe782a1c1baa0a08608cf6a (patch) | |
| tree | 4aa387e10c87c7936dffe4de993bd41f6028873d /src/ng/compile.js | |
| parent | b431ee38509724ba9098a7be7a8d6c5dcded4fe9 (diff) | |
| download | angular.js-1564b82b49d996503fe782a1c1baa0a08608cf6a.tar.bz2 | |
style($compile): rename orig*Node to beforeTemplate*Node
Diffstat (limited to 'src/ng/compile.js')
| -rw-r--r-- | src/ng/compile.js | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/src/ng/compile.js b/src/ng/compile.js index 00628365..4a18b1a7 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -829,7 +829,7 @@ function $CompileProvider($provide) {        var linkQueue = [],            afterTemplateNodeLinkFn,            afterTemplateChildLinkFn, -          origCompileNode = $compileNode[0], +          beforeTemplateCompileNode = $compileNode[0],            origAsyncDirective = directives.shift(),            // The fact that we have to copy and patch the directive seems wrong!            derivedSyncDirective = extend({}, origAsyncDirective, { @@ -853,7 +853,7 @@ function $CompileProvider($provide) {              collectDirectives(compileNode, directives, tempTemplateAttrs);              mergeTemplateAttributes(tAttrs, tempTemplateAttrs);            } else { -            compileNode = origCompileNode; +            compileNode = beforeTemplateCompileNode;              $compileNode.html(content);            } @@ -865,14 +865,14 @@ function $CompileProvider($provide) {            while(linkQueue.length) {              var controller = linkQueue.pop(),                  linkRootElement = linkQueue.pop(), -                origLinkNode = linkQueue.pop(), +                beforeTemplateLinkNode = linkQueue.pop(),                  scope = linkQueue.pop(),                  linkNode = compileNode; -            if (origLinkNode !== origCompileNode) { +            if (beforeTemplateLinkNode !== beforeTemplateCompileNode) {                // it was cloned therefore we have to clone as well.                linkNode = JQLiteClone(compileNode); -              replaceWith(linkRootElement, jqLite(origLinkNode), linkNode); +              replaceWith(linkRootElement, jqLite(beforeTemplateLinkNode), linkNode);              }              afterTemplateNodeLinkFn(function() { | 
