@@ -819,13 +819,11 @@ ASTCompiler.prototype = {
819
819
'getStringValue' ,
820
820
'ifDefined' ,
821
821
'plus' ,
822
- 'text' ,
823
822
fnString ) ) (
824
823
this . $filter ,
825
824
getStringValue ,
826
825
ifDefined ,
827
- plusFn ,
828
- expression ) ;
826
+ plusFn ) ;
829
827
this . state = this . stage = undefined ;
830
828
fn . literal = isLiteral ( ast ) ;
831
829
fn . constant = isConstant ( ast ) ;
@@ -1240,7 +1238,6 @@ ASTInterpreter.prototype = {
1240
1238
compile : function ( expression ) {
1241
1239
var self = this ;
1242
1240
var ast = this . astBuilder . ast ( expression ) ;
1243
- this . expression = expression ;
1244
1241
findConstantAndWatchExpressions ( ast , self . $filter ) ;
1245
1242
var assignable ;
1246
1243
var assign ;
@@ -1311,17 +1308,16 @@ ASTInterpreter.prototype = {
1311
1308
context
1312
1309
) ;
1313
1310
case AST . Identifier :
1314
- return self . identifier ( ast . name ,
1315
- context , create , self . expression ) ;
1311
+ return self . identifier ( ast . name , context , create ) ;
1316
1312
case AST . MemberExpression :
1317
1313
left = this . recurse ( ast . object , false , ! ! create ) ;
1318
1314
if ( ! ast . computed ) {
1319
1315
right = ast . property . name ;
1320
1316
}
1321
1317
if ( ast . computed ) right = this . recurse ( ast . property ) ;
1322
1318
return ast . computed ?
1323
- this . computedMember ( left , right , context , create , self . expression ) :
1324
- this . nonComputedMember ( left , right , context , create , self . expression ) ;
1319
+ this . computedMember ( left , right , context , create ) :
1320
+ this . nonComputedMember ( left , right , context , create ) ;
1325
1321
case AST . CallExpression :
1326
1322
args = [ ] ;
1327
1323
forEach ( ast . arguments , function ( expr ) {
@@ -1547,7 +1543,7 @@ ASTInterpreter.prototype = {
1547
1543
value : function ( value , context ) {
1548
1544
return function ( ) { return context ? { context : undefined , name : undefined , value : value } : value ; } ;
1549
1545
} ,
1550
- identifier : function ( name , context , create , expression ) {
1546
+ identifier : function ( name , context , create ) {
1551
1547
return function ( scope , locals , assign , inputs ) {
1552
1548
var base = locals && ( name in locals ) ? locals : scope ;
1553
1549
if ( create && create !== 1 && base && base [ name ] == null ) {
@@ -1561,7 +1557,7 @@ ASTInterpreter.prototype = {
1561
1557
}
1562
1558
} ;
1563
1559
} ,
1564
- computedMember : function ( left , right , context , create , expression ) {
1560
+ computedMember : function ( left , right , context , create ) {
1565
1561
return function ( scope , locals , assign , inputs ) {
1566
1562
var lhs = left ( scope , locals , assign , inputs ) ;
1567
1563
var rhs ;
@@ -1583,7 +1579,7 @@ ASTInterpreter.prototype = {
1583
1579
}
1584
1580
} ;
1585
1581
} ,
1586
- nonComputedMember : function ( left , right , context , create , expression ) {
1582
+ nonComputedMember : function ( left , right , context , create ) {
1587
1583
return function ( scope , locals , assign , inputs ) {
1588
1584
var lhs = left ( scope , locals , assign , inputs ) ;
1589
1585
if ( create && create !== 1 ) {
0 commit comments