diff options
Diffstat (limited to 'src/ng/parse.js')
| -rw-r--r-- | src/ng/parse.js | 13 | 
1 files changed, 6 insertions, 7 deletions
| diff --git a/src/ng/parse.js b/src/ng/parse.js index b5127d9f..26c41a90 100644 --- a/src/ng/parse.js +++ b/src/ng/parse.js @@ -162,10 +162,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; @@ -179,7 +179,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); @@ -666,8 +666,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;      }, { @@ -792,7 +791,7 @@ function cspSafeGetterFn(key0, key1, key2, key3, key4) {      }      return pathVal;    }; -}; +}  function getterFn(path, csp) {    if (getterFnCache.hasOwnProperty(path)) { @@ -807,7 +806,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++] | 
