MCPcopy
hub / github.com/angular-ui/ui-grid / toJsonReplacer

Function toJsonReplacer

lib/test/angular/1.8.0/angular.js:1401–1415  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

1399
1400
1401function toJsonReplacer(key, value) {
1402 var val = value;
1403
1404 if (typeof key === 'string' && key.charAt(0) === '$' && key.charAt(1) === '$') {
1405 val = undefined;
1406 } else if (isWindow(value)) {
1407 val = '$WINDOW';
1408 } else if (value && window.document === value) {
1409 val = '$DOCUMENT';
1410 } else if (isScope(value)) {
1411 val = '$SCOPE';
1412 }
1413
1414 return val;
1415}
1416
1417
1418/**

Callers 1

serializeObjectFunction · 0.70

Calls 2

isWindowFunction · 0.70
isScopeFunction · 0.70

Tested by

no test coverage detected