(value)
| 124 | } |
| 125 | |
| 126 | validate (value) { |
| 127 | if (!this.ready) throw new Error('JSON Editor not ready yet. Make sure the load method is complete') |
| 128 | |
| 129 | /* Custom value */ |
| 130 | if (arguments.length === 1) { |
| 131 | return this.validator.validate(value) |
| 132 | /* Current value (use cached result) */ |
| 133 | } else { |
| 134 | return this.validation_results |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | destroy () { |
| 139 | if (this.destroyed) return |
no outgoing calls
no test coverage detected