diff --git a/index.html b/index.html index 979a13b..cdebbbc 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,6 @@ Highcharts Demo - annotations demo - diff --git a/js/annotations.js b/js/annotations.js index 70cdd5c..c01643c 100644 --- a/js/annotations.js +++ b/js/annotations.js @@ -1,4 +1,4 @@ -/* global $ Highcharts document window module:true */ +/* global Highcharts document window module:true */ (function (factory) { if (typeof module === 'object' && module.exports) { module.exports = factory; @@ -532,7 +532,7 @@ title.add(group); } if ((allowDragX || allowDragY) && !hasEvents) { - $(group.element).on('mousedown', function (e) { + group.element.addEventListener('mousedown', function (e) { annotation.events.storeAnnotation(e, annotation, chart); annotation.events.select(e, annotation); }); @@ -542,7 +542,7 @@ attachCustomEvents(group, options.events); } else if (!hasEvents) { - $(group.element).on('mousedown', function (e) { + group.element.addEventListener('mousedown', function (e) { annotation.events.select(e, annotation); }); attachCustomEvents(group, options.events);