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

Method _add

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

Source from the content-addressed store, hash-verified

982 const platform = this.platform;
983
984 const _add = (type, listener) => {
985 platform.addEventListener(this, type, listener);
986 listeners[type] = listener;
987 };
988
989 const listener = (e, x, y) => {
990 e.offsetX = x;

Callers

nothing calls this directly

Calls 1

addEventListenerMethod · 0.45

Tested by

no test coverage detected