]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
do not attempt to clear canvas if one does not exist (#11764)
authorArun Philip <dacodedbeat@gmail.com>
Fri, 17 May 2024 12:16:58 +0000 (08:16 -0400)
committerGitHub <noreply@github.com>
Fri, 17 May 2024 12:16:58 +0000 (08:16 -0400)
commite7b8fa290fd587fb800c25ddecfa4b26a5adad63
tree449a63a1c8cc37617fa9c6b43525b06b7a43b7d6
parentca76d73149a16a142aec101d32e6382e2b3697c1
do not attempt to clear canvas if one does not exist (#11764)

* do not attempt to clear canvas if one does not exist

* update test to explicitly run clearCanvas method to ensure it doesn't throw an error

* explicitly set canvas and ctx to null in test since the helper in test code didn't

* Update test/specs/helpers.canvas.tests.js

---------

Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com>
src/helpers/helpers.canvas.ts
test/specs/helpers.canvas.tests.js