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

fix(tooltip): leaking watchers on toggling (WIP) #1601

Closed

Conversation

chrisirhc
Copy link
Contributor

Make sure to use a new child scope every time as watchers leak into
scope. If linked DOM is removed, watchers from directives in that DOM
aren't removed.

Regression from #1455

This seems like a tough one to add a test for besides counting the number of total watchers. Perhaps that's a good strategy. I'll keep that in mind and possibly add that tomorrow. Heading to sleep.

Make sure to use a new child scope every time as watchers leak into
scope. If linked DOM is removed, watchers from directives in that DOM
aren't removed.

Regression from angular-ui#1455
@pkozlowski-opensource
Copy link
Member

@chrisirhc this PR is still marked as WIP, are you planning to add / change anything in here?

@chrisirhc
Copy link
Contributor Author

@pkozlowski-opensource , I think I marked this as WIP because #1600 would supersede this and wasn't sure whether to close this as-is or keep it for maintenance of older versions.

@pkozlowski-opensource
Copy link
Member

I like #1600! Let's close this one and merge #1600?

@chrisirhc
Copy link
Contributor Author

Sounds great!

@chrisirhc chrisirhc closed this Jan 25, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants