Skip to content

Commit

Permalink
Always keep animation end listener active, fixes PolymerElements#132
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Tagscherer committed Oct 27, 2018
1 parent 50726d7 commit 98e1dcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paper-tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ Polymer({
*/
attached: function() {
this._findTarget();
this.listen(this.$.tooltip, 'animationend', '_onAnimationEnd');
},

/**
Expand All @@ -347,6 +348,7 @@ Polymer({
detached: function() {
if (!this.manualMode)
this._removeListeners();
this.unlisten(this.$.tooltip, 'animationend', '_onAnimationEnd');
},

/**
Expand Down Expand Up @@ -496,7 +498,6 @@ Polymer({
this.listen(this._target, 'blur', 'hide');
this.listen(this._target, 'tap', 'hide');
}
this.listen(this.$.tooltip, 'animationend', '_onAnimationEnd');
this.listen(this, 'mouseenter', 'hide');
},

Expand Down Expand Up @@ -582,7 +583,6 @@ Polymer({
this.unlisten(this._target, 'blur', 'hide');
this.unlisten(this._target, 'tap', 'hide');
}
this.unlisten(this.$.tooltip, 'animationend', '_onAnimationEnd');
this.unlisten(this, 'mouseenter', 'hide');
}
});

0 comments on commit 98e1dcf

Please sign in to comment.