kurkle / chartjs-plugin-gradient

Easy gradients for Chart.js
MIT License
33 stars 6 forks source link

Remove destroy plugin hook and replaced with afterDestroy #46

Closed stockiNail closed 1 year ago

stockiNail commented 1 year ago

With CHART.JS 4, PR https://github.com/chartjs/Chart.js/pull/10549, the destroy plugin hook has been removed and replaced with afterDestroy. Currently, the version is not cleaning the states map.

stockiNail commented 1 year ago

To maintain compatibility with version 3 afterDestroy must be only added and destroy should stay

stockiNail commented 1 year ago

I will submit a PR this evening hopefully