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

Method _exec

src/core/core.registry.js:151–156  ·  view source on GitHub ↗

* @private

(method, registry, component)

Source from the content-addressed store, hash-verified

149 * @private
150 */
151 _exec(method, registry, component) {
152 const camelMethod = _capitalize(method);
153 call(component['before' + camelMethod], [], component); // beforeRegister / beforeUnregister
154 registry[method](component);
155 call(component['after' + camelMethod], [], component); // afterRegister / afterUnregister
156 }
157
158 /**
159 * @private

Callers 1

_eachMethod · 0.95

Calls 1

_capitalizeFunction · 0.85

Tested by

no test coverage detected