mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Fixed touch scrolling and the js errors on windows
This commit is contained in:
5
js/angular/controller/scrollController.js
vendored
5
js/angular/controller/scrollController.js
vendored
@@ -73,7 +73,10 @@ function($scope, scrollViewOptions, $timeout, $window, $$scrollValueCache, $loca
|
||||
|
||||
$scope.$on('$destroy', function() {
|
||||
deregisterInstance();
|
||||
scrollView.__cleanup();
|
||||
//Windows: make sure the scrollView.__cleanup exists before calling it
|
||||
if (scrollView.__cleanup) {
|
||||
scrollView.__cleanup();
|
||||
}
|
||||
ionic.off('resize', resize, $window);
|
||||
$window.removeEventListener('resize', resize);
|
||||
viewContentLoaded();
|
||||
|
||||
Reference in New Issue
Block a user