Skip to content

Commit

Permalink
Add hard coded integer constants for *_SAFE_INTEGER which are not ava…
Browse files Browse the repository at this point in the history
…ilable on IE
  • Loading branch information
OlduwanSteve authored and etimberg committed May 27, 2017
1 parent 7579198 commit 2258199
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/scales/scale.time.js
Expand Up @@ -52,8 +52,9 @@ module.exports = function(Chart) {
var timeOpts = me.options.time;

// We store the data range as unix millisecond timestamps so dataMin and dataMax will always be integers.
var dataMin = Number.MAX_SAFE_INTEGER;
var dataMax = Number.MIN_SAFE_INTEGER;
// Integer constants are from the ES6 spec.
var dataMin = Number.MAX_SAFE_INTEGER || 9007199254740991;
var dataMax = Number.MIN_SAFE_INTEGER || -9007199254740991;

var chartData = me.chart.data;
var parsedData = {
Expand Down

0 comments on commit 2258199

Please sign in to comment.