Luegg / angularjs-scroll-glue

An AngularJs directive that automatically scrolls to the bottom of an element on changes in it's scope.
439 stars 78 forks source link

Fix memory leak - remove listeners when directive destroyed #43

Closed dani3l closed 8 years ago

dani3l commented 8 years ago

Remove $window and $el listeners when directive is destroyed. This fixes a memory leak I had to struggle with.