Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
fix(ngMock): prevent memory leak due to data attached to `$rootElement` #14098
Starting with 88bb551,
This commit prevents the memory leak, by cleaning up all data attached to
referenced this pull request
Feb 21, 2016
So the idea of the tests is that you have to run a test beforehand that sets up the spies so that you can check to see that the root element was in fact cleaned up?
I has to rebase this on top of master (because the commit this is supposed to fix was reverted).
I incorporated the original commit (attaching
I added a 2nd commit, that addressed your feedback (except for #14098 (comment) - I'll play with that next).