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
billtrik committed Sep 9, 2014
1 parent df0dded commit ecc8cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flotr2.js
Original file line number Diff line number Diff line change
Expand Up @@ -5661,7 +5661,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 ecc8cd5

Please sign in to comment.