MCPcopy
hub / github.com/chartjs/Chart.js / _notify

Method _notify

src/core/core.plugins.js:59–71  ·  view source on GitHub ↗

* @private

(descriptors, chart, hook, args)

Source from the content-addressed store, hash-verified

57 * @private
58 */
59 _notify(descriptors, chart, hook, args) {
60 args = args || {};
61 for (const descriptor of descriptors) {
62 const plugin = descriptor.plugin;
63 const method = plugin[hook];
64 const params = [chart, args, descriptor.options];
65 if (callCallback(method, params, plugin) === false && args.cancelable) {
66 return false;
67 }
68 }
69
70 return true;
71 }
72
73 invalidate() {
74 // When plugins are registered, there is the possibility of a double

Callers 2

notifyMethod · 0.95
_notifyStateChangesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected