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

Method isAttached

src/platform/platform.dom.js:385–388  ·  view source on GitHub ↗

* @param {HTMLCanvasElement} canvas

(canvas)

Source from the content-addressed store, hash-verified

383 * @param {HTMLCanvasElement} canvas
384 */
385 isAttached(canvas) {
386 const container = canvas && _getParentNode(canvas);
387 return !!(container && container.isConnected);
388 }
389}

Callers 2

bindResponsiveEventsMethod · 0.45

Calls 1

_getParentNodeFunction · 0.85

Tested by

no test coverage detected