]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Avoid meta data access in calculateCircumference
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Mon, 25 Apr 2016 17:49:49 +0000 (19:49 +0200)
committerSimon Brunel <simonbrunel@users.noreply.github.com>
Tue, 26 Apr 2016 10:46:30 +0000 (12:46 +0200)
commitaa0933e040b456e23557a999408f6047578e631c
tree3fa3510575e848c2080f290bf36b165f344d1255
parent29115c9d2c94f5f52a22fa5e9d39244726a7d9d2
Avoid meta data access in calculateCircumference

Fix access of uninitialized meta data while calculating circumference in the polar area chart by caching the number of visible elements in the update() method. Also make the calculateTotal() of the doughnut chart tolerant of uninitialized meta data.
src/controllers/controller.doughnut.js
src/controllers/controller.polarArea.js