Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

Scope leaks on tooltip show/hide #2709

@bespokebob

Description

@bespokebob

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:

  1. Use something like Batarang to observe the scope hierarchy
  2. Move your mouse back and forth across an element with a tooltip
  3. Watch the list of scopes continue to grow

Adding tooltip.children().scope().$destroy() right before tooltip.remove() in removeTooltip() seems to fix the issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions