From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Sat, 2 Nov 2019 19:20:19 +0000 (-0700) Subject: Remove unused parameters (#6674) X-Git-Tag: v3.0.0-alpha~271 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80587bb68dd7a1b5d6bea2f70b0362378bf27a62;p=thirdparty%2FChart.js.git Remove unused parameters (#6674) --- diff --git a/src/core/core.controller.js b/src/core/core.controller.js index 8e75bf8e1..df7156172 100644 --- a/src/core/core.controller.js +++ b/src/core/core.controller.js @@ -622,11 +622,10 @@ helpers.extend(Chart.prototype, /** @lends Chart */ { easing: config.easing || animationOptions.easing, render: function(chart, animationObject) { - var easingFunction = helpers.easing.effects[animationObject.easing]; - var currentStep = animationObject.currentStep; - var stepDecimal = currentStep / animationObject.numSteps; + const easingFunction = helpers.easing.effects[animationObject.easing]; + const stepDecimal = animationObject.currentStep / animationObject.numSteps; - chart.draw(easingFunction(stepDecimal), stepDecimal, currentStep); + chart.draw(easingFunction(stepDecimal)); }, onAnimationProgress: animationOptions.onProgress,