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;