angular-off-click icon indicating copy to clipboard operation
angular-off-click copied to clipboard

Remove event listeners avoiding memory leaks

Open FMRb opened this issue 8 years ago • 1 comments

Memory leak caused by event listeners not being removed. I have created a PR fixing the issue: #52

FMRb avatar Apr 19 '17 10:04 FMRb

This library doesn't create a new event listener each time the directive is used. It creates 3 listeners (touchmove, touchend and click) once; when the directive is first used/instantiated. These 3 listeners are used to all of the off-click directives; there are only ever 3 event listeners. Can you create a plunker, jsfiddle, webpackbin, or something showcasing your issue?

TheSharpieOne avatar Apr 19 '17 14:04 TheSharpieOne