From 04659301e8dc3b147bb7ef86f063b7dbfb44eb21 Mon Sep 17 00:00:00 2001 From: Chris Sand Date: Tue, 1 Aug 2017 07:50:35 -0700 Subject: [PATCH] fix for #3169 - add parenthesis around ternary (#3324) --- lib/timeline/TimeStep.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeline/TimeStep.js b/lib/timeline/TimeStep.js index d4d5a8d3..8082961b 100644 --- a/lib/timeline/TimeStep.js +++ b/lib/timeline/TimeStep.js @@ -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;