diff --git a/lib/timeline/Core.js b/lib/timeline/Core.js index 5f1ea9c..f749478 100644 --- a/lib/timeline/Core.js +++ b/lib/timeline/Core.js @@ -291,7 +291,7 @@ class Core { } // make sure your target is a timeline element - if (!event.target.className.indexOf("timeline") > -1) return; + if (!(event.target.className.indexOf("timeline") > -1)) return; // make sure only one item is added every time you're over the timeline if (itemAddedToTimeline) return;