MCPcopy Create free account
hub / github.com/chartjs/Chart.js / _add

Method _add

src/core/core.controller.js:1063–1066  ·  view source on GitHub ↗
(type, listener)

Source from the content-addressed store, hash-verified

1061 const platform = this.platform;
1062
1063 const _add = (type, listener) => {
1064 platform.addEventListener(this, type, listener);
1065 listeners[type] = listener;
1066 };
1067
1068 const listener = (e, x, y) => {
1069 e.offsetX = x;

Callers

nothing calls this directly

Calls 1

addEventListenerMethod · 0.45

Tested by

no test coverage detected