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

Method _add

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

Source from the content-addressed store, hash-verified

978 const platform = this.platform;
979
980 const _add = (type, listener) => {
981 platform.addEventListener(this, type, listener);
982 listeners[type] = listener;
983 };
984
985 const listener = (e, x, y) => {
986 e.offsetX = x;

Callers

nothing calls this directly

Calls 1

addEventListenerMethod · 0.45

Tested by

no test coverage detected