Skip to content

Commit 9813ac6

Browse files
committed
修复Android平台上拉加载endPullupToRefresh(true)方法失效的bug
1 parent 3cfba88 commit 9813ac6

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

dist/js/mui.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4798,7 +4798,8 @@ var mui = (function(document, undefined) {
47984798
self.pullCaption.innerHTML = self.options.up.contentnomore;
47994799
// self.bottomPocket.classList.remove(CLASS_BLOCK);
48004800
// self.bottomPocket.classList.add(CLASS_HIDDEN);
4801-
// document.removeEventListener('plusscrollbottom', self);
4801+
//取消5+的plusscrollbottom事件
4802+
document.removeEventListener('plusscrollbottom', self);
48024803
window.removeEventListener('dragup', self);
48034804
} else { //初始化时隐藏,后续不再隐藏
48044805
self.pullCaption.className = CLASS_PULL_CAPTION + ' ' + CLASS_PULL_CAPTION_DOWN;
@@ -4819,6 +4820,7 @@ var mui = (function(document, undefined) {
48194820
this.bottomPocket.classList.remove(CLASS_HIDDEN);
48204821
this.pullCaption.className = CLASS_PULL_CAPTION + ' ' + CLASS_PULL_CAPTION_DOWN;
48214822
this.pullCaption.innerHTML = this.options.up.contentdown;
4823+
document.addEventListener("plusscrollbottom", this);
48224824
window.addEventListener('dragup', this);
48234825
},
48244826
scrollTo: function(x, y, time) {

dist/js/mui.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/hello-mui/js/mui.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4798,7 +4798,8 @@ var mui = (function(document, undefined) {
47984798
self.pullCaption.innerHTML = self.options.up.contentnomore;
47994799
// self.bottomPocket.classList.remove(CLASS_BLOCK);
48004800
// self.bottomPocket.classList.add(CLASS_HIDDEN);
4801-
// document.removeEventListener('plusscrollbottom', self);
4801+
//取消5+的plusscrollbottom事件
4802+
document.removeEventListener('plusscrollbottom', self);
48024803
window.removeEventListener('dragup', self);
48034804
} else { //初始化时隐藏,后续不再隐藏
48044805
self.pullCaption.className = CLASS_PULL_CAPTION + ' ' + CLASS_PULL_CAPTION_DOWN;
@@ -4819,6 +4820,7 @@ var mui = (function(document, undefined) {
48194820
this.bottomPocket.classList.remove(CLASS_HIDDEN);
48204821
this.pullCaption.className = CLASS_PULL_CAPTION + ' ' + CLASS_PULL_CAPTION_DOWN;
48214822
this.pullCaption.innerHTML = this.options.up.contentdown;
4823+
document.addEventListener("plusscrollbottom", this);
48224824
window.addEventListener('dragup', this);
48234825
},
48244826
scrollTo: function(x, y, time) {

examples/hello-mui/js/mui.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/pullrefresh.5+.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@
191191
self.pullCaption.innerHTML = self.options.up.contentnomore;
192192
// self.bottomPocket.classList.remove(CLASS_BLOCK);
193193
// self.bottomPocket.classList.add(CLASS_HIDDEN);
194-
// document.removeEventListener('plusscrollbottom', self);
194+
//取消5+的plusscrollbottom事件
195+
document.removeEventListener('plusscrollbottom', self);
195196
window.removeEventListener('dragup', self);
196197
} else { //初始化时隐藏,后续不再隐藏
197198
self.pullCaption.className = CLASS_PULL_CAPTION + ' ' + CLASS_PULL_CAPTION_DOWN;
@@ -212,6 +213,7 @@
212213
this.bottomPocket.classList.remove(CLASS_HIDDEN);
213214
this.pullCaption.className = CLASS_PULL_CAPTION + ' ' + CLASS_PULL_CAPTION_DOWN;
214215
this.pullCaption.innerHTML = this.options.up.contentdown;
216+
document.addEventListener("plusscrollbottom", this);
215217
window.addEventListener('dragup', this);
216218
},
217219
scrollTo: function(x, y, time) {

0 commit comments

Comments
 (0)