diff --git a/js/angular/directive/list.js b/js/angular/directive/list.js index 44a1dcaa9a..c4d836b94a 100644 --- a/js/angular/directive/list.js +++ b/js/angular/directive/list.js @@ -117,6 +117,13 @@ function($animate, $timeout) { } }); + $scope.$on('$destroy', function() { + if(listView) { + listView.deregister && listView.deregister(); + listView = null; + } + }); + if (isDefined($attr.canSwipe)) { $scope.$watch('!!(' + $attr.canSwipe + ')', function(value) { listCtrl.canSwipeItems(value);