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

Function nodeListContains

src/platform/platform.dom.js:121–127  ·  view source on GitHub ↗
(nodeList, canvas)

Source from the content-addressed store, hash-verified

119}
120
121function nodeListContains(nodeList, canvas) {
122 for (const node of nodeList) {
123 if (node === canvas || node.contains(canvas)) {
124 return true;
125 }
126 }
127}
128
129function createAttachObserver(chart, type, listener) {
130 const canvas = chart.canvas;

Callers 2

createAttachObserverFunction · 0.85
createDetachObserverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected