Skip to content
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

Memory Leak On svElement Directive #93

Open
domJalb opened this issue Jun 3, 2016 · 0 comments
Open

Memory Leak On svElement Directive #93

domJalb opened this issue Jun 3, 2016 · 0 comments

Comments

@domJalb
Copy link

domJalb commented Jun 3, 2016

There are a few events that are created in the svElement directive that retain references to elements after they've been destroyed.

Unbinding them on a $destroy event seems to free things from memory

$scope.$on('$destroy', function(){ html.unbind('mousemove touchmove mouseup touchend touchcancel'); handle.unbind('mousedown touchstart'); });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant