@@ -4,7 +4,7 @@ var OPERATORS = {
4
4
'null' :function ( self ) { return null ; } ,
5
5
'true' :function ( self ) { return true ; } ,
6
6
'false' :function ( self ) { return false ; } ,
7
- $ undefined :noop ,
7
+ undefined :noop ,
8
8
'+' :function ( self , a , b ) { a = a ( self ) ; b = b ( self ) ; return ( isDefined ( a ) ?a :0 ) + ( isDefined ( b ) ?b :0 ) ; } ,
9
9
'-' :function ( self , a , b ) { a = a ( self ) ; b = b ( self ) ; return ( isDefined ( a ) ?a :0 ) - ( isDefined ( b ) ?b :0 ) ; } ,
10
10
'*' :function ( self , a , b ) { return a ( self ) * b ( self ) ; } ,
@@ -511,9 +511,8 @@ function parser(text, json, $filter){
511
511
function primary ( ) {
512
512
var primary ;
513
513
if ( expect ( '(' ) ) {
514
- var expression = filterChain ( ) ;
514
+ primary = filterChain ( ) ;
515
515
consume ( ')' ) ;
516
- primary = expression ;
517
516
} else if ( expect ( '[' ) ) {
518
517
primary = arrayDeclaration ( ) ;
519
518
} else if ( expect ( '{' ) ) {
@@ -646,22 +645,6 @@ function parser(text, json, $filter){
646
645
return object ;
647
646
} ;
648
647
}
649
-
650
- function watchDecl ( ) {
651
- var anchorName = expect ( ) . text ;
652
- consume ( ":" ) ;
653
- var expressionFn ;
654
- if ( peekToken ( ) . text == '{' ) {
655
- consume ( "{" ) ;
656
- expressionFn = statements ( ) ;
657
- consume ( "}" ) ;
658
- } else {
659
- expressionFn = expression ( ) ;
660
- }
661
- return function ( self ) {
662
- return { name :anchorName , fn :expressionFn } ;
663
- } ;
664
- }
665
648
}
666
649
667
650
//////////////////////////////////////////////////
0 commit comments