Browse Source

fix for #3169 - add parenthesis around ternary (#3324)

revert-3409-performance
Chris Sand 6 years ago
committed by Yotam Berkowitz
parent
commit
04659301e8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/timeline/TimeStep.js

+ 1
- 1
lib/timeline/TimeStep.js View File

@ -656,7 +656,7 @@ TimeStep.prototype.getClassName = function() {
classNames.push(even(current.minutes()));
break;
case 'hour':
classNames.push('vis-h' + current.hours() + this.step == 4 ? '-h' + (current.hours() + 4) : '');
classNames.push('vis-h' + current.hours() + (this.step == 4 ? '-h' + (current.hours() + 4) : ''));
classNames.push(today(current));
classNames.push(even(current.hours()));
break;

Loading…
Cancel
Save