fix(scrollView): stop memory-leak when destroying scrollView

Fixes #1096
This commit is contained in:
Andrew Joslin
2014-05-19 08:13:45 -06:00
parent 6b402c3862
commit 4a210130b4
3 changed files with 61 additions and 23 deletions

View File

@@ -51,6 +51,7 @@ function($scope, scrollViewOptions, $timeout, $window, $$scrollValueCache, $loca
$scope.$on('$destroy', function() {
deregisterInstance();
scrollView.__removeEventHandlers();
ionic.off('resize', resize, $window);
$window.removeEventListener('resize', resize);
backListenDone();