From 0f327c7aad64094fdcc99c65bb4fc1dffea0e11d Mon Sep 17 00:00:00 2001 From: Shimon Doodkin Date: Thu, 5 Apr 2018 23:07:15 +0300 Subject: [PATCH] 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 4ddd208a..19d0d4bb 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) { + if (this.options.mouse.container&&this.mouseTrack) { D.remove(this.mouseTrack); } this.mouseTrack = null;