aboutsummaryrefslogtreecommitdiffstats
path: root/src/Compiler.js
diff options
context:
space:
mode:
authorIgor Minar2011-01-19 13:05:48 -0800
committerMisko Hevery2011-01-19 15:53:59 -0800
commit964e39455526358c5e4bfc94c9d6595687a95865 (patch)
treee1b61d5e52726915236f0846cbbad4d2a5a17c0a /src/Compiler.js
parent2c0f7ffe3af2b2c7c84cea49456728d1ac9b3bfe (diff)
downloadangular.js-964e39455526358c5e4bfc94c9d6595687a95865.tar.bz2
fix argument variables in compiler
Diffstat (limited to 'src/Compiler.js')
-rw-r--r--src/Compiler.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Compiler.js b/src/Compiler.js
index fdce334c..3f5ba9e1 100644
--- a/src/Compiler.js
+++ b/src/Compiler.js
@@ -92,20 +92,20 @@ function Compiler(markup, attrMarkup, directives, widgets){
}
Compiler.prototype = {
- compile: function(rawElement) {
- rawElement = jqLite(rawElement);
+ compile: function(element) {
+ element = jqLite(element);
var index = 0,
template,
- parent = rawElement.parent();
+ parent = element.parent();
if (parent && parent[0]) {
parent = parent[0];
for(var i = 0; i < parent.childNodes.length; i++) {
- if (parent.childNodes[i] == rawElement[0]) {
+ if (parent.childNodes[i] == element[0]) {
index = i;
}
}
}
- template = this.templatize(rawElement, index, 0) || new Template();
+ template = this.templatize(element, index, 0) || new Template();
return function(element, parentScope){
element = jqLite(element);
var scope = parentScope && parentScope.$eval ?