fixed sticky tips

This commit is contained in:
antelle 2020-05-31 23:31:14 +02:00
parent 9e09f7b7e7
commit 4b52280549
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 10 additions and 0 deletions

View File

@ -90,9 +90,19 @@ Tip.prototype.hide = function() {
Tip.prototype.destroy = function() {
this.hide();
this.el.off('mouseenter', this.mouseenter);
this.el.off('mouseleave', this.mouseleave);
this.el.off('click', this.mouseleave);
if (this.showTimeout) {
clearTimeout(this.showTimeout);
this.showTimeout = null;
}
if (this.hideTimeout) {
clearTimeout(this.hideTimeout);
this.hideTimeout = null;
}
};
Tip.prototype.mouseenter = function() {