@@ -154,10 +154,10 @@ function lex(text, csp){
154
154
function readIdent ( ) {
155
155
var ident = "" ,
156
156
start = index ,
157
- lastDot , peekIndex , methodName ;
157
+ lastDot , peekIndex , methodName , ch ;
158
158
159
159
while ( index < text . length ) {
160
- var ch = text . charAt ( index ) ;
160
+ ch = text . charAt ( index ) ;
161
161
if ( ch == '.' || isIdent ( ch ) || isNumber ( ch ) ) {
162
162
if ( ch == '.' ) lastDot = index ;
163
163
ident += ch ;
@@ -171,7 +171,7 @@ function lex(text, csp){
171
171
if ( lastDot ) {
172
172
peekIndex = index ;
173
173
while ( peekIndex < text . length ) {
174
- var ch = text . charAt ( peekIndex ) ;
174
+ ch = text . charAt ( peekIndex ) ;
175
175
if ( ch == '(' ) {
176
176
methodName = ident . substr ( lastDot - start + 1 ) ;
177
177
ident = ident . substr ( 0 , lastDot - start ) ;
@@ -637,8 +637,7 @@ function parser(text, json, $filter, csp){
637
637
var object = { } ;
638
638
for ( var i = 0 ; i < keyValues . length ; i ++ ) {
639
639
var keyValue = keyValues [ i ] ;
640
- var value = keyValue . value ( self , locals ) ;
641
- object [ keyValue . key ] = value ;
640
+ object [ keyValue . key ] = keyValue . value ( self , locals ) ;
642
641
}
643
642
return object ;
644
643
} ;
@@ -760,7 +759,7 @@ function cspSafeGetterFn(key0, key1, key2, key3, key4) {
760
759
}
761
760
return pathVal ;
762
761
} ;
763
- } ;
762
+ }
764
763
765
764
function getterFn ( path , csp ) {
766
765
if ( getterFnCache . hasOwnProperty ( path ) ) {
@@ -775,7 +774,7 @@ function getterFn(path, csp) {
775
774
fn = ( pathKeysLength < 6 )
776
775
? cspSafeGetterFn ( pathKeys [ 0 ] , pathKeys [ 1 ] , pathKeys [ 2 ] , pathKeys [ 3 ] , pathKeys [ 4 ] )
777
776
: function ( scope , locals ) {
778
- var i = 0 , val
777
+ var i = 0 , val ;
779
778
do {
780
779
val = cspSafeGetterFn (
781
780
pathKeys [ i ++ ] , pathKeys [ i ++ ] , pathKeys [ i ++ ] , pathKeys [ i ++ ] , pathKeys [ i ++ ]
0 commit comments