Skip to content

Commit 160629c

Browse files
mbcooperadamdbradley
authored andcommitted
fix(pullToRefresh): check if scrollView is present
1 parent f6fe7d7 commit 160629c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: js/angular/directive/refresher.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ IonicModule
101101

102102
$scope.$on('scroll.refreshComplete', function() {
103103
$scope.$evalAsync(function() {
104-
scrollCtrl.scrollView.finishPullToRefresh();
104+
if(scrollCtrl.scrollView){
105+
scrollCtrl.scrollView.finishPullToRefresh();
106+
}
105107
});
106108
});
107109
}

0 commit comments

Comments
 (0)