From 80587bb68dd7a1b5d6bea2f70b0362378bf27a62 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Sat, 2 Nov 2019 12:20:19 -0700 Subject: [PATCH] Remove unused parameters (#6674) --- src/core/core.controller.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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,