Skip to content

Commit

Permalink
fix(scroll): prevent 'cannot read from undefined' exception
Browse files Browse the repository at this point in the history
  • Loading branch information
leobetosouza committed Oct 27, 2015
1 parent 5b39fa3 commit 3fa971b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/angular/controller/scrollController.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function($scope,

if (!isDefined(scrollViewOptions.bouncing)) {
ionic.Platform.ready(function() {
if (scrollView.options) {
if (scrollView && scrollView.options) {
scrollView.options.bouncing = true;
if (ionic.Platform.isAndroid()) {
// No bouncing by default on Android
Expand Down

0 comments on commit 3fa971b

Please sign in to comment.