]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Optimize element.point and controller.line 2578/head
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Tue, 17 May 2016 11:32:40 +0000 (13:32 +0200)
committerSimon Brunel <simonbrunel@users.noreply.github.com>
Tue, 17 May 2016 22:25:45 +0000 (00:25 +0200)
commit93c28a4d5f18ffe11f524afbb9e8e7aeadc91766
tree9ce183f7b1c16f4326a9d3d210ad320766f5e2c0
parent69521477a1f77c8c149c166c5c6b77a93bb3a009
Optimize element.point and controller.line

Change some helpers.each() to `for` loops when iterating on a potentially large number of items and use more local variables when appropriate (making the minified build a bit smaller).
src/controllers/controller.line.js
src/elements/element.point.js