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

Method trigger

src/core.js:190–198  ·  view source on GitHub ↗
(event, editor)

Source from the content-addressed store, hash-verified

188 }
189
190 trigger (event, editor) {
191 if (this.callbacks && this.callbacks[event] && this.callbacks[event].length) {
192 for (let i = 0; i < this.callbacks[event].length; i++) {
193 this.callbacks[event][i].apply(this, [editor])
194 }
195 }
196
197 return this
198 }
199
200 setOption (option, value) {
201 if (option === 'show_errors') {

Callers 15

loadMethod · 0.95
onChangeMethod · 0.95
_createDeleteButtonMethod · 0.80
_createCopyButtonMethod · 0.80
_createMoveUpButtonMethod · 0.80
_createMoveDownButtonMethod · 0.80
_supportDragDropMethod · 0.80
_createAddRowButtonMethod · 0.80
setValueMethod · 0.80
addNewOptionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected