chartjs / chartjs-plugin-annotation

Annotation plugin for Chart.js
MIT License
607 stars 328 forks source link

Improve event handling adding test cases #614

Closed stockiNail closed 2 years ago

stockiNail commented 2 years ago

This PR is adding some additional test cases for event handling, in order to test specific condition in the code.

Furthermore it removes from event.js :

  1. a useless check on state.annotations because that instance can never be undefined.
stockiNail commented 2 years ago

@kurkle I reverted the removing of the if statement and apologize again... THANK YOU, as usual!