]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Remove unnecessary variable
authorBen McCann <benjamin.j.mccann@gmail.com>
Wed, 26 Apr 2017 03:43:18 +0000 (20:43 -0700)
committerEvert Timberg <evert.timberg+github@gmail.com>
Tue, 2 May 2017 01:37:54 +0000 (21:37 -0400)
src/scales/scale.time.js

index 710d51410f85d0960721ba07e94be45469d1d575..0b356b3c100b06dad4e4e63ede5699dc48f50a38 100755 (executable)
@@ -318,7 +318,7 @@ module.exports = function(Chart) {
                        me.displayFormat = timeOpts.displayFormats[unit];
 
                        var stepSize = timeOpts.stepSize || determineStepSize(minTimestamp || dataMin, maxTimestamp || dataMax, unit, maxTicks);
-                       var ticks = me.ticks = Chart.Ticks.generators.time({
+                       me.ticks = Chart.Ticks.generators.time({
                                maxTicks: maxTicks,
                                min: minTimestamp,
                                max: maxTimestamp,
@@ -332,8 +332,8 @@ module.exports = function(Chart) {
 
                        // At this point, we need to update our max and min given the tick values since we have expanded the
                        // range of the scale
-                       me.max = helpers.max(ticks);
-                       me.min = helpers.min(ticks);
+                       me.max = helpers.max(me.ticks);
+                       me.min = helpers.min(me.ticks);
                },
                // Get tooltip label
                getLabelForIndex: function(index, datasetIndex) {