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

Function parseStringifyInterceptor

test/angular/1.7/angular.js:14002–14015  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

14000 }
14001
14002 function parseStringifyInterceptor(value) {
14003 try {
14004 // In concatenable contexts, getTrusted comes at the end, to avoid sanitizing individual
14005 // parts of a full URL. We don't care about losing the trustedness here.
14006 // In non-concatenable contexts, where there is only one expression, this interceptor is
14007 // not applied to the expression.
14008 value = (trustedContext && !contextAllowsConcatenation) ?
14009 $sce.getTrusted(trustedContext, value) :
14010 $sce.valueOf(value);
14011 return allOrNothing && !isDefined(value) ? value : stringify(value);
14012 } catch (err) {
14013 $exceptionHandler($interpolateMinErr.interr(text, err));
14014 }
14015 }
14016 }
14017
14018

Callers

nothing calls this directly

Calls 2

isDefinedFunction · 0.70
stringifyFunction · 0.70

Tested by

no test coverage detected