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

Function parseStringifyInterceptor

lib/test/angular/1.7.0/angular.js:13433–13446  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

13431 }
13432
13433 function parseStringifyInterceptor(value) {
13434 try {
13435 // In concatenable contexts, getTrusted comes at the end, to avoid sanitizing individual
13436 // parts of a full URL. We don't care about losing the trustedness here.
13437 // In non-concatenable contexts, where there is only one expression, this interceptor is
13438 // not applied to the expression.
13439 value = (trustedContext && !contextAllowsConcatenation) ?
13440 $sce.getTrusted(trustedContext, value) :
13441 $sce.valueOf(value);
13442 return allOrNothing && !isDefined(value) ? value : stringify(value);
13443 } catch (err) {
13444 $exceptionHandler($interpolateMinErr.interr(text, err));
13445 }
13446 }
13447 }
13448
13449

Callers

nothing calls this directly

Calls 2

isDefinedFunction · 0.70
stringifyFunction · 0.70

Tested by

no test coverage detected