Skip to content

Commit

Permalink
Fix HumbleSoftware#285. Remove mouseTrack only when one exists
Browse files Browse the repository at this point in the history
  • Loading branch information
shimondoodkin authored Apr 5, 2018
1 parent 9b247ea commit 0f327c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/plugins/hit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0f327c7

Please sign in to comment.