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

Function toJsonReplacer

test/angular/1.5/angular.js:1269–1283  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

1267
1268
1269function toJsonReplacer(key, value) {
1270 var val = value;
1271
1272 if (typeof key === 'string' && key.charAt(0) === '$' && key.charAt(1) === '$') {
1273 val = undefined;
1274 } else if (isWindow(value)) {
1275 val = '$WINDOW';
1276 } else if (value && window.document === value) {
1277 val = '$DOCUMENT';
1278 } else if (isScope(value)) {
1279 val = '$SCOPE';
1280 }
1281
1282 return val;
1283}
1284
1285
1286/**

Callers 1

serializeObjectFunction · 0.70

Calls 2

isWindowFunction · 0.70
isScopeFunction · 0.70

Tested by

no test coverage detected