Skip to content

Fix for Issue: #5101 - enableColumnResizing accumulates watchers with each table $digest cycle #5933

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

jedancona
Copy link

Fixes Issue: enableColumnResizing accumulates watchers with each table $digest cycle #5101.

#5101

Creates a new scope for each resizer, stores them into an array so that the scopes can be destroyed before resetting the resizers.

@mportuga
Copy link
Member

@jedancona Can you add unit tests for your removeResizers function?

@jedancona
Copy link
Author

Added unit testing by calling the destroying the scope and checking the length of watchers. The previous code leaves a watcher behind. The new code does not leave a watcher behind.

@oricalvo
Copy link

oricalvo commented Mar 2, 2017

What about this PR? It fixes an important scope leak inside the grid which causes significant performance degredation after a time

@mportuga mportuga merged commit 954beba into angular-ui:master Mar 3, 2017
vishalnarewade pushed a commit to vishalnarewade/ui-grid that referenced this pull request Nov 6, 2017
…atchers with each table $digest cycle (angular-ui#5933)"

This reverts commit 954beba.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants