diff --git a/dist/js/ionic.js b/dist/js/ionic.js index 7b04bf5c09..e11fecf2df 100644 --- a/dist/js/ionic.js +++ b/dist/js/ionic.js @@ -2376,7 +2376,9 @@ window.ionic = { // Grab the refresher element if using Pull to Refresh if(this.hasPullToRefresh) { this._refresher = document.querySelector('.scroll-refresher'); - this._refresher.classList.remove('scroll-refreshing'); + if(this._refresher) { + this._refresher.classList.remove('scroll-refreshing'); + } } this.x = scrollLeft; diff --git a/js/views/scrollView.js b/js/views/scrollView.js index b2526ffe0b..819a7b80c6 100644 --- a/js/views/scrollView.js +++ b/js/views/scrollView.js @@ -482,7 +482,9 @@ // Grab the refresher element if using Pull to Refresh if(this.hasPullToRefresh) { this._refresher = document.querySelector('.scroll-refresher'); - this._refresher.classList.remove('scroll-refreshing'); + if(this._refresher) { + this._refresher.classList.remove('scroll-refreshing'); + } } this.x = scrollLeft;