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

Method notifyWatchers

src/core.js:350–355  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

348 }
349
350 notifyWatchers (path) {
351 if (!this.watchlist || !this.watchlist[path]) return this
352 for (let i = 0; i < this.watchlist[path].length; i++) {
353 this.watchlist[path][i]()
354 }
355 }
356
357 isEnabled () {
358 return !this.root || this.root.isEnabled()

Callers 4

notifyMethod · 0.80
buildMethod · 0.80
setValueMethod · 0.80
onWatchedFieldChangeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected