(value)
| 12444 | } |
| 12445 | |
| 12446 | function stringify(value) { |
| 12447 | if (value == null) { // null || undefined |
| 12448 | return ''; |
| 12449 | } |
| 12450 | switch (typeof value) { |
| 12451 | case 'string': |
| 12452 | break; |
| 12453 | case 'number': |
| 12454 | value = '' + value; |
| 12455 | break; |
| 12456 | default: |
| 12457 | value = toJson(value); |
| 12458 | } |
| 12459 | |
| 12460 | return value; |
| 12461 | } |
| 12462 | |
| 12463 | // TODO: this is the same as the constantWatchDelegate in parse.js |
| 12464 | function constantWatchDelegate(scope, listener, objectEquality, constantInterp) { |
no test coverage detected