mirror of https://github.com/keeweb/keeweb
fixed sticky tips
parent
9e09f7b7e7
commit
4b52280549
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue