Closed makkeu closed 9 years ago
I was chasing a memory leak and looks like it was caused by this module. I tried to replace code in $destroy event from:
scope.$on('$destroy', function () { hammer.off(eventName, handler); });
to this:
scope.$on('$destroy', function () { hammer.destroy(); });
This change seems to fix my memory leaks.
I was chasing a memory leak and looks like it was caused by this module. I tried to replace code in $destroy event from:
to this:
This change seems to fix my memory leaks.