MCPcopy Index your code
hub / github.com/json-editor/json-editor / destroyRow

Method destroyRow

src/editors/array.js:303–314  ·  view source on GitHub ↗
(row, hard)

Source from the content-addressed store, hash-verified

301 }
302
303 destroyRow (row, hard) {
304 const holder = row.container
305 if (hard) {
306 row.destroy()
307 if (holder.parentNode) holder.parentNode.removeChild(holder)
308 if (this.checkParent(row.tab)) row.tab.parentNode.removeChild(row.tab)
309 } else {
310 if (row.tab) row.tab.style.display = 'none'
311 holder.style.display = 'none'
312 row.unregister()
313 }
314 }
315
316 getMax () {
317 if ((Array.isArray(this.schema.items)) && this.schema.additionalItems === false) {

Callers 2

emptyMethod · 0.95
setValueMethod · 0.95

Calls 3

checkParentMethod · 0.95
destroyMethod · 0.45
unregisterMethod · 0.45

Tested by

no test coverage detected