(value)
| 11929 | } |
| 11930 | |
| 11931 | function stringify(value) { |
| 11932 | if (value == null) { // null || undefined |
| 11933 | return ''; |
| 11934 | } |
| 11935 | switch (typeof value) { |
| 11936 | case 'string': |
| 11937 | break; |
| 11938 | case 'number': |
| 11939 | value = '' + value; |
| 11940 | break; |
| 11941 | default: |
| 11942 | value = toJson(value); |
| 11943 | } |
| 11944 | |
| 11945 | return value; |
| 11946 | } |
| 11947 | |
| 11948 | //TODO: this is the same as the constantWatchDelegate in parse.js |
| 11949 | function constantWatchDelegate(scope, listener, objectEquality, constantInterp) { |
no test coverage detected