()
| 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 |
no test coverage detected