MCPcopy Create free account
hub / github.com/apache/cloudstack / toJsonReplacer

Function toJsonReplacer

tools/ngui/static/js/lib/angular.js:732–746  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

730
731
732function toJsonReplacer(key, value) {
733 var val = value;
734
735 if (/^\$+/.test(key)) {
736 val = undefined;
737 } else if (isWindow(value)) {
738 val = '$WINDOW';
739 } else if (value && document === value) {
740 val = '$DOCUMENT';
741 } else if (isScope(value)) {
742 val = '$SCOPE';
743 }
744
745 return val;
746}
747
748
749/**

Callers

nothing calls this directly

Calls 3

isWindowFunction · 0.85
isScopeFunction · 0.85
testMethod · 0.45

Tested by

no test coverage detected