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

Function releaseObserver

src/platform/platform.dom.js:231–238  ·  view source on GitHub ↗
(chart, type, observer)

Source from the content-addressed store, hash-verified

229}
230
231function releaseObserver(chart, type, observer) {
232 if (observer) {
233 observer.disconnect();
234 }
235 if (type === 'resize') {
236 unlistenDevicePixelRatioChanges(chart);
237 }
238}
239
240function createProxyAndListen(chart, type, listener) {
241 const canvas = chart.canvas;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected