diff --git a/lib/timeline/Core.js b/lib/timeline/Core.js index e9176360..348f35ad 100644 --- a/lib/timeline/Core.js +++ b/lib/timeline/Core.js @@ -459,7 +459,7 @@ Core.prototype.getVisibleItems = function() { Core.prototype.fit = function(options) { var range = this.getDataRange(); - // skip range set if there is no start and end date + // skip range set if there is no min and max date if (range.min === null && range.max === null) { return; } @@ -496,8 +496,8 @@ Core.prototype.getDataRange = function() { } return { - start: null, - end: null + min: start, + max: end } };