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

Method enable

src/editors/array.js:38–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 }
37
38 enable () {
39 if (!this.always_disabled) {
40 this.setAvailability(this, false)
41
42 if (this.rows) {
43 this.rows.forEach(row => {
44 row.enable()
45 this.setAvailability(row, false)
46 })
47 }
48 super.enable()
49 }
50 }
51
52 disable (alwaysDisabled) {
53 if (alwaysDisabled) this.always_disabled = true

Callers

nothing calls this directly

Calls 1

setAvailabilityMethod · 0.95

Tested by

no test coverage detected