MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / parseStringifyInterceptor

Function parseStringifyInterceptor

lib/test/angular/1.8.0/angular.js:14067–14080  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

14065 }
14066
14067 function parseStringifyInterceptor(value) {
14068 try {
14069 // In concatenable contexts, getTrusted comes at the end, to avoid sanitizing individual
14070 // parts of a full URL. We don't care about losing the trustedness here.
14071 // In non-concatenable contexts, where there is only one expression, this interceptor is
14072 // not applied to the expression.
14073 value = (trustedContext && !contextAllowsConcatenation) ?
14074 $sce.getTrusted(trustedContext, value) :
14075 $sce.valueOf(value);
14076 return allOrNothing && !isDefined(value) ? value : stringify(value);
14077 } catch (err) {
14078 $exceptionHandler($interpolateMinErr.interr(text, err));
14079 }
14080 }
14081 }
14082
14083

Callers

nothing calls this directly

Calls 2

isDefinedFunction · 0.70
stringifyFunction · 0.70

Tested by

no test coverage detected