Browse Source

better variable name

codeClimate
Nikola Gluhovic 8 years ago
committed by GitHub
parent
commit
d07a3ec8e5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/timeline/DateUtil.js

+ 2
- 2
lib/timeline/DateUtil.js View File

@ -299,9 +299,9 @@ exports.toScreen = function (Core, time, width) {
var duration = exports.getHiddenDurationBetween(Core.body.hiddenDates, Core.range.start, Core.range.end);
if (time < Core.range.start) {
var conversion = Core.range.conversion(width, duration);
var durationAfter = exports.getHiddenDurationBeforeStart(Core.body.hiddenDates, time, conversion.offset);
var hiddenBeforeStart = exports.getHiddenDurationBeforeStart(Core.body.hiddenDates, time, conversion.offset);
time = Core.options.moment(time).toDate().valueOf();
time = time + durationAfter;
time = time + hiddenBeforeStart;
return -(conversion.offset - time.valueOf()) * conversion.scale;
} else if (time > Core.range.end) {

Loading…
Cancel
Save