Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

<title>Highcharts Demo - annotations demo</title>

<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="https://code.highcharts.com/stock/highstock.js"></script>
<script src="./js/annotations.js"></script>
<script src="./js/demo.js"></script>
Expand Down
6 changes: 3 additions & 3 deletions js/annotations.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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);
});
Expand All @@ -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);
Expand Down