]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Flatten animation object and fix callbacks
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Sat, 25 Feb 2017 10:51:47 +0000 (11:51 +0100)
committerEvert Timberg <evert.timberg+github@gmail.com>
Fri, 3 Mar 2017 11:49:47 +0000 (06:49 -0500)
commitb92b256872e9d01ef56c9b8d4440cda784662fe0
treef581c660964eaa627e9f71df5488166c0233354c
parentd25e7b1e1a250b225e6fb5a5fda3cf42153d3d93
Flatten animation object and fix callbacks

Animation callbacks now receives `animationObject` directly with a reference on the associated chart (`animation.chart`), which deprecates `animation.animationObject` and `animation.chartInstance`. Also fix missing `onComplete` animation argument and make sure that an animation object is passed even when animations are disabled.
docs/01-Chart-Configuration.md
samples/animation/progress-bar.html
src/core/core.animation.js
src/core/core.controller.js
src/core/core.helpers.js
src/core/core.scale.js
test/global.deprecations.tests.js