Skip to content

Commit

Permalink
Merge pull request #4565 from leobetosouza/master
Browse files Browse the repository at this point in the history
fix(scroll): prevent 'cannot read from undefined' exception
  • Loading branch information
mlynch committed Dec 6, 2015
2 parents 896c476 + 3fa971b commit 5b6e4d6
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 5b6e4d6

Please sign in to comment.