aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng
diff options
context:
space:
mode:
Diffstat (limited to 'src/ng')
-rw-r--r--src/ng/compile.js2
-rw-r--r--src/ng/parse.js13
2 files changed, 7 insertions, 8 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js
index 371617fe..a609d615 100644
--- a/src/ng/compile.js
+++ b/src/ng/compile.js
@@ -822,7 +822,7 @@ function $CompileProvider($provide) {
parentGet = $parse(attrs[attrName]);
scope[scopeName] = function(locals) {
return parentGet(parentScope, locals);
- }
+ };
break;
}
diff --git a/src/ng/parse.js b/src/ng/parse.js
index b85350a6..86ac8806 100644
--- a/src/ng/parse.js
+++ b/src/ng/parse.js
@@ -154,10 +154,10 @@ function lex(text, csp){
function readIdent() {
var ident = "",
start = index,
- lastDot, peekIndex, methodName;
+ lastDot, peekIndex, methodName, ch;
while (index < text.length) {
- var ch = text.charAt(index);
+ ch = text.charAt(index);
if (ch == '.' || isIdent(ch) || isNumber(ch)) {
if (ch == '.') lastDot = index;
ident += ch;
@@ -171,7 +171,7 @@ function lex(text, csp){
if (lastDot) {
peekIndex = index;
while(peekIndex < text.length) {
- var ch = text.charAt(peekIndex);
+ ch = text.charAt(peekIndex);
if (ch == '(') {
methodName = ident.substr(lastDot - start + 1);
ident = ident.substr(0, lastDot - start);
@@ -637,8 +637,7 @@ function parser(text, json, $filter, csp){
var object = {};
for ( var i = 0; i < keyValues.length; i++) {
var keyValue = keyValues[i];
- var value = keyValue.value(self, locals);
- object[keyValue.key] = value;
+ object[keyValue.key] = keyValue.value(self, locals);
}
return object;
};
@@ -760,7 +759,7 @@ function cspSafeGetterFn(key0, key1, key2, key3, key4) {
}
return pathVal;
};
-};
+}
function getterFn(path, csp) {
if (getterFnCache.hasOwnProperty(path)) {
@@ -775,7 +774,7 @@ function getterFn(path, csp) {
fn = (pathKeysLength < 6)
? cspSafeGetterFn(pathKeys[0], pathKeys[1], pathKeys[2], pathKeys[3], pathKeys[4])
: function(scope, locals) {
- var i = 0, val
+ var i = 0, val;
do {
val = cspSafeGetterFn(
pathKeys[i++], pathKeys[i++], pathKeys[i++], pathKeys[i++], pathKeys[i++]