@@ -992,7 +992,7 @@ function $ParseProvider() {
992
992
this . $get = [ '$filter' , '$sniffer' , function ( $filter , $sniffer ) {
993
993
$parseOptions . csp = $sniffer . csp ;
994
994
995
- return function ( exp , interceptorFn ) {
995
+ return function $parse ( exp , interceptorFn ) {
996
996
var parsedExpression , oneTime , cacheKey ;
997
997
998
998
switch ( typeof exp ) {
@@ -1012,10 +1012,10 @@ function $ParseProvider() {
1012
1012
parsedExpression = parser . parse ( exp ) ;
1013
1013
1014
1014
if ( parsedExpression . constant ) {
1015
- parsedExpression . $$watchDelegate = constantWatch ;
1015
+ parsedExpression . $$watchDelegate = constantWatchDelegate ;
1016
1016
} else if ( oneTime ) {
1017
1017
parsedExpression . $$watchDelegate = parsedExpression . literal ?
1018
- oneTimeLiteralWatch : oneTimeWatch ;
1018
+ oneTimeLiteralWatchDelegate : oneTimeWatchDelegate ;
1019
1019
}
1020
1020
1021
1021
cache [ cacheKey ] = parsedExpression ;
@@ -1030,7 +1030,7 @@ function $ParseProvider() {
1030
1030
}
1031
1031
} ;
1032
1032
1033
- function oneTimeWatch ( scope , listener , objectEquality , parsedExpression ) {
1033
+ function oneTimeWatchDelegate ( scope , listener , objectEquality , parsedExpression ) {
1034
1034
var unwatch , lastValue ;
1035
1035
return unwatch = scope . $watch ( function oneTimeWatch ( scope ) {
1036
1036
return parsedExpression ( scope ) ;
@@ -1049,7 +1049,7 @@ function $ParseProvider() {
1049
1049
} , objectEquality ) ;
1050
1050
}
1051
1051
1052
- function oneTimeLiteralWatch ( scope , listener , objectEquality , parsedExpression ) {
1052
+ function oneTimeLiteralWatchDelegate ( scope , listener , objectEquality , parsedExpression ) {
1053
1053
var unwatch ;
1054
1054
return unwatch = scope . $watch ( function oneTimeWatch ( scope ) {
1055
1055
return parsedExpression ( scope ) ;
@@ -1073,7 +1073,7 @@ function $ParseProvider() {
1073
1073
}
1074
1074
}
1075
1075
1076
- function constantWatch ( scope , listener , objectEquality , parsedExpression ) {
1076
+ function constantWatchDelegate ( scope , listener , objectEquality , parsedExpression ) {
1077
1077
var unwatch ;
1078
1078
return unwatch = scope . $watch ( function constantWatch ( scope ) {
1079
1079
return parsedExpression ( scope ) ;
0 commit comments