From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Sat, 2 Nov 2019 13:19:50 +0000 (-0700) Subject: Comment explaining hover animation (#6676) X-Git-Tag: v3.0.0-alpha~272 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b39acdb58029f339a1ce7c0b65ad141b52a2d2ae;p=thirdparty%2FChart.js.git Comment explaining hover animation (#6676) --- diff --git a/src/core/core.element.js b/src/core/core.element.js index 37fbee1f2..c489985fb 100644 --- a/src/core/core.element.js +++ b/src/core/core.element.js @@ -81,6 +81,8 @@ helpers.extend(Element.prototype, { // No animation -> No Transition if (!model || ease === 1) { + // _model has to be cloned to _view + // Otherwise, when _model properties are set on hover, _view.* is also set to the same value, and hover animation doesn't occur me._view = helpers.extend({}, model); me._start = null; return me;