Skip to content

Commit

Permalink
Fix:双webview下拉刷新pulldownLoading无效
Browse files Browse the repository at this point in the history
  • Loading branch information
hbcui1984 committed Nov 2, 2017
1 parent d1494b0 commit 44af91a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 26 deletions.
13 changes: 5 additions & 8 deletions dist/js/mui.js
Original file line number Diff line number Diff line change
Expand Up @@ -5283,14 +5283,11 @@ Function.prototype.bind = Function.prototype.bind || function(to) {
if(self.options.down.style == "circle"){//单webview下拉刷新
plus.webview.currentWebview().beginPullToRefresh();
}else{//双webview模式
var webview = self.options.webview;
if(webview){
webview.setBounce({
offset: {
top: self.options.down.height + "px"
}
});
}
plus.webview.currentWebview().setBounce({
offset: {
top: self.options.down.height + "px"
}
});
}
},15);
}.bind(this));
Expand Down
2 changes: 1 addition & 1 deletion dist/js/mui.min.js

Large diffs are not rendered by default.

13 changes: 5 additions & 8 deletions examples/hello-mui/js/mui.js
Original file line number Diff line number Diff line change
Expand Up @@ -5283,14 +5283,11 @@ Function.prototype.bind = Function.prototype.bind || function(to) {
if(self.options.down.style == "circle"){//单webview下拉刷新
plus.webview.currentWebview().beginPullToRefresh();
}else{//双webview模式
var webview = self.options.webview;
if(webview){
webview.setBounce({
offset: {
top: self.options.down.height + "px"
}
});
}
plus.webview.currentWebview().setBounce({
offset: {
top: self.options.down.height + "px"
}
});
}
},15);
}.bind(this));
Expand Down
2 changes: 1 addition & 1 deletion examples/hello-mui/js/mui.min.js

Large diffs are not rendered by default.

13 changes: 5 additions & 8 deletions js/mui.pullrefresh.5+.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,11 @@
if(self.options.down.style == "circle"){//单webview下拉刷新
plus.webview.currentWebview().beginPullToRefresh();
}else{//双webview模式
var webview = self.options.webview;
if(webview){
webview.setBounce({
offset: {
top: self.options.down.height + "px"
}
});
}
plus.webview.currentWebview().setBounce({
offset: {
top: self.options.down.height + "px"
}
});
}
},15);
}.bind(this));
Expand Down

0 comments on commit 44af91a

Please sign in to comment.