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

Function toJsonReplacer

test/angular/1.3/angular.js:1020–1034  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

1018
1019
1020function toJsonReplacer(key, value) {
1021 var val = value;
1022
1023 if (typeof key === 'string' && key.charAt(0) === '$' && key.charAt(1) === '$') {
1024 val = undefined;
1025 } else if (isWindow(value)) {
1026 val = '$WINDOW';
1027 } else if (value && document === value) {
1028 val = '$DOCUMENT';
1029 } else if (isScope(value)) {
1030 val = '$SCOPE';
1031 }
1032
1033 return val;
1034}
1035
1036
1037/**

Callers 1

serializeObjectFunction · 0.70

Calls 2

isWindowFunction · 0.70
isScopeFunction · 0.70

Tested by

no test coverage detected