Skip to content

Commit 3fa971b

Browse files
committed
fix(scroll): prevent 'cannot read from undefined' exception
1 parent 5b39fa3 commit 3fa971b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: js/angular/controller/scrollController.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function($scope,
5454

5555
if (!isDefined(scrollViewOptions.bouncing)) {
5656
ionic.Platform.ready(function() {
57-
if (scrollView.options) {
57+
if (scrollView && scrollView.options) {
5858
scrollView.options.bouncing = true;
5959
if (ionic.Platform.isAndroid()) {
6060
// No bouncing by default on Android

0 commit comments

Comments
 (0)