From c58a03a8b758abbcf5111dd8249b0d006716e2e6 Mon Sep 17 00:00:00 2001 From: Antoine Boisadam Date: Thu, 11 Oct 2018 16:20:23 +0200 Subject: [PATCH] Fix a parenthesis typo --- lib/timeline/Core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeline/Core.js b/lib/timeline/Core.js index fa843ceff..dadb1d4bb 100644 --- a/lib/timeline/Core.js +++ b/lib/timeline/Core.js @@ -299,7 +299,7 @@ Core.prototype._create = function (container) { } // make sure your target is a vis element - if (!event.target.className.indexOf("vis") > -1) return; + if (!(event.target.className.indexOf("vis") > -1)) return; // make sure only one item is added every time you're over the timeline if (itemAddedToTimeline) return;