]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Remove unused parameters (#6674)
authorBen McCann <322311+benmccann@users.noreply.github.com>
Sat, 2 Nov 2019 19:20:19 +0000 (12:20 -0700)
committerEvert Timberg <evert.timberg+github@gmail.com>
Sat, 2 Nov 2019 19:20:19 +0000 (15:20 -0400)
src/core/core.controller.js

index 8e75bf8e1eea0a02e9c8777417e675b3bf04c913..df71561727121039e5659bc66321c9015517c3d2 100644 (file)
@@ -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,