Fixed refresher missing bug

This commit is contained in:
Max Lynch
2013-11-07 19:47:05 -06:00
parent 32d0f48e21
commit 1f9d60223a
2 changed files with 6 additions and 2 deletions

4
dist/js/ionic.js vendored
View File

@ -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;

View File

@ -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;