This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +19
-19
lines changed
1 file changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,25 @@ function $InterpolateProvider() {
88
88
return '\\\\\\' + ch ;
89
89
}
90
90
91
+ function unescapeText ( text ) {
92
+ return text . replace ( escapedStartRegexp , startSymbol ) .
93
+ replace ( escapedEndRegexp , endSymbol ) ;
94
+ }
95
+
96
+ function stringify ( value ) {
97
+ if ( value == null ) { // null || undefined
98
+ return '' ;
99
+ }
100
+ switch ( typeof value ) {
101
+ case 'string' :
102
+ case 'number' :
103
+ case 'boolean' :
104
+ return value ;
105
+ default :
106
+ return toJson ( value ) ;
107
+ }
108
+ }
109
+
91
110
/**
92
111
* @ngdoc service
93
112
* @name $interpolate
@@ -243,20 +262,6 @@ function $InterpolateProvider() {
243
262
$sce . valueOf ( value ) ;
244
263
} ;
245
264
246
- var stringify = function ( value ) {
247
- if ( value == null ) { // null || undefined
248
- return '' ;
249
- }
250
- switch ( typeof value ) {
251
- case 'string' :
252
- case 'number' :
253
- case 'boolean' :
254
- return value ;
255
- default :
256
- return toJson ( value ) ;
257
- }
258
- } ;
259
-
260
265
return extend ( function interpolationFn ( context ) {
261
266
var i = 0 ;
262
267
var ii = expressions . length ;
@@ -291,11 +296,6 @@ function $InterpolateProvider() {
291
296
} ) ;
292
297
}
293
298
294
- function unescapeText ( text ) {
295
- return text . replace ( escapedStartRegexp , startSymbol ) .
296
- replace ( escapedEndRegexp , endSymbol ) ;
297
- }
298
-
299
299
function parseStringifyInterceptor ( value ) {
300
300
try {
301
301
value = getValue ( value ) ;
You can’t perform that action at this time.
0 commit comments