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

Method invalidate

src/core/core.plugins.js:73–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 }
72
73 invalidate() {
74 // When plugins are registered, there is the possibility of a double
75 // invalidate situation. In this case, we only want to invalidate once.
76 // If we invalidate multiple times, the `_oldCache` is lost and all of the
77 // plugins are restarted without being correctly stopped.
78 // See https://github.com/chartjs/Chart.js/issues/8147
79 if (!isNullOrUndef(this._cache)) {
80 this._oldCache = this._cache;
81 this._cache = undefined;
82 }
83 }
84
85 /**
86 * @param {Chart} chart

Callers 2

updateMethod · 0.80
invalidatePluginsFunction · 0.80

Calls 1

isNullOrUndefFunction · 0.85

Tested by

no test coverage detected