(value)
| 11615 | } |
| 11616 | |
| 11617 | function stringify(value) { |
| 11618 | if (value == null) { // null || undefined |
| 11619 | return ''; |
| 11620 | } |
| 11621 | switch (typeof value) { |
| 11622 | case 'string': |
| 11623 | break; |
| 11624 | case 'number': |
| 11625 | value = '' + value; |
| 11626 | break; |
| 11627 | default: |
| 11628 | value = toJson(value); |
| 11629 | } |
| 11630 | |
| 11631 | return value; |
| 11632 | } |
| 11633 | |
| 11634 | //TODO: this is the same as the constantWatchDelegate in parse.js |
| 11635 | function constantWatchDelegate(scope, listener, objectEquality, constantInterp) { |
no test coverage detected