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

Method expandCallbacks

src/editor.js:797–809  ·  view source on GitHub ↗
(scope, options)

Source from the content-addressed store, hash-verified

795 }
796
797 expandCallbacks (scope, options) {
798 const callback = this.defaults.callbacks[scope]
799 Object.entries(options).forEach(([key, value]) => {
800 if (value === Object(value)) {
801 options[key] = this.expandCallbacks(scope, value)
802 } else if (typeof value === 'string' &&
803 typeof callback === 'object' &&
804 typeof callback[value] === 'function') {
805 options[key] = callback[value].bind(null, this)
806 }
807 })
808 return options
809 }
810
811 showValidationErrors (errors) {
812

Callers 15

buildMethod · 0.80
afterInputReadyMethod · 0.80
buildMethod · 0.80
preBuildMethod · 0.80
afterInputReadyMethod · 0.80
afterInputReadyMethod · 0.80
afterInputReadyMethod · 0.80
afterInputReadyMethod · 0.80
buildMethod · 0.80
afterInputReadyMethod · 0.80
afterInputReadyMethod · 0.80
afterInputReadyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected