MCPcopy Create free account
hub / github.com/json-editor/json-editor / destroy

Method destroy

src/core.js:138–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 || {}

Callers 7

editor.spec.jsFile · 0.45
core.spec.jsFile · 0.45
validator.spec.jsFile · 0.45
object.spec.jsFile · 0.45
array.spec.jsFile · 0.45
table.spec.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected