You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2019. It is now read-only.
Whenever a tooltip is shown, any old tooltip element is destroyed and a new one is created. Since the tooltip element contains a tooltipPopup that creates a new scope, each show/hide of a tooltip creates a new scope that remains until the parent scope is destroyed.
To reproduce:
Use something like Batarang to observe the scope hierarchy
Move your mouse back and forth across an element with a tooltip
Watch the list of scopes continue to grow
Adding tooltip.children().scope().$destroy() right before tooltip.remove() in removeTooltip() seems to fix the issue.
Whenever a tooltip is shown, any old tooltip element is destroyed and a new one is created. Since the tooltip element contains a tooltipPopup that creates a new scope, each show/hide of a tooltip creates a new scope that remains until the parent scope is destroyed.
To reproduce:
Adding
tooltip.children().scope().$destroy()right beforetooltip.remove()inremoveTooltip()seems to fix the issue.