()
| 136 | } |
| 137 | |
| 138 | destroy () { |
| 139 | if (this.destroyed) return |
| 140 | if (!this.ready) return |
| 141 | |
| 142 | this.schema = null |
| 143 | this.options = null |
| 144 | this.root.destroy() |
| 145 | this.root = null |
| 146 | this.root_container = null |
| 147 | this.validator = null |
| 148 | this.validation_results = null |
| 149 | this.theme = null |
| 150 | this.iconlib = null |
| 151 | this.template = null |
| 152 | this.__data = null |
| 153 | this.ready = false |
| 154 | this.element.innerHTML = '' |
| 155 | this.element.removeAttribute('data-theme') |
| 156 | this.destroyed = true |
| 157 | } |
| 158 | |
| 159 | on (event, callback) { |
| 160 | this.callbacks = this.callbacks || {} |
no outgoing calls
no test coverage detected