From 1f9d60223a0663db4aed61623c2ecaa391a65f31 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Thu, 7 Nov 2013 19:47:05 -0600 Subject: [PATCH] Fixed refresher missing bug --- dist/js/ionic.js | 4 +++- js/views/scrollView.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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;