endPullUpToRefresh: function(finished) {
if (finished) {
//this.finished = true;
this.pullUpTipsIcon.innerHTML = this.options.up.contentnomore;
//this.element.removeEventListener('dragup', this);
//window.removeEventListener('scroll', this);
} else {
this.pullUpTipsIcon.innerHTML = this.options.up.contentdown;
}
this.loading = false;
if (this.isInScroll) {
$(this.element.parentNode).scroll().refresh();
}
},
mui.pullToRefresh.js 文件内注释以上代码的可以解决问题,这样在没数据的时候 self.endPullUpToRefresh(true);只会改文字内容,没有数据的时候自己判断下,下拉刷新的时候再把文字改回去,其实改个提示状态就行了,干嘛要移除事件呢
pullDownLoading: function() {
if (this.loading) {
return;
}
if (!this.pullDownTips) {
this.initPullDownTips();
this.dragEndAfterChangeOffset(true);
return;
}
this.loading = true;
this.pullDownTips.classList.add(CLASS_TRANSITIONING);
this.pullDownTips.style.webkitTransform = 'translate3d(0,' + this.options.down.height + 'px,0)';
this.options.down.callback.apply(this);
/*下拉刷新把提示文字改回去*/
this.pullUpTipsIcon.innerHTML = this.options.up.contentdown;
},
蛋蛋_0713
你最后怎么解决的,改源码?
2016-08-25 13:30
n***@163.com (作者)
回复 蛋蛋_0713:mui.pullToRefresh.js 改的这个js文件
2016-09-27 16:52