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

Function toJsonReplacer

test/angular/1.2/angular.js:1090–1104  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

1088
1089
1090function toJsonReplacer(key, value) {
1091 var val = value;
1092
1093 if (typeof key === 'string' && key.charAt(0) === '$') {
1094 val = undefined;
1095 } else if (isWindow(value)) {
1096 val = '$WINDOW';
1097 } else if (value && document === value) {
1098 val = '$DOCUMENT';
1099 } else if (isScope(value)) {
1100 val = '$SCOPE';
1101 }
1102
1103 return val;
1104}
1105
1106
1107/**

Callers

nothing calls this directly

Calls 2

isWindowFunction · 0.70
isScopeFunction · 0.70

Tested by

no test coverage detected