This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
memory leak in tests with jQuery 2 #8532
Closed
Description
I don't think that we properly considered the impact of the jQuery 2 upgrade on angular-mocks.
relevant code:
angular.js/src/ngMock/angular-mocks.js
Lines 2004 to 2023 in 7df7d1a
this means that if a test doesn't trigger jQuery data/event handler deallocation, these objects will remain in the jQuery cache forever or at least until karma captured browser window doesn't crash.
I'm unsure how to fix this without patching jQuery :-/
@mzgol any ideas? :)