From 7bd80ab468e707c75ddc90b68d7b625b672e6dd6 Mon Sep 17 00:00:00 2001 From: Shimon Doodkin Date: Fri, 6 Apr 2018 13:12:10 +0300 Subject: [PATCH] Revert "Fix #285. Remove mouseTrack only when one exists" --- js/plugins/hit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/plugins/hit.js b/js/plugins/hit.js index 19d0d4bb..4ddd208a 100644 --- a/js/plugins/hit.js +++ b/js/plugins/hit.js @@ -22,7 +22,7 @@ Flotr.addPlugin('hit', { } }, 'flotr:destroy': function() { - if (this.options.mouse.container&&this.mouseTrack) { + if (this.options.mouse.container) { D.remove(this.mouseTrack); } this.mouseTrack = null;