-
28 Jan 2012 1:57 PM #1
PullRefreh bug
PullRefreh bug
I found a bug in the PullRefresh plugin, based on sencha-touch-2.0.0-pr3.
In the onBounceTop, currently it calls like below
This is the correct one...
if(this.refreshFn){this.refreshFn.call(this,this.onLoadComplete,this);}
Cheers,onBounceTop: function(y) {
var list = this.getList(),
scroller = list.getScrollable().getScroller();
if (!this.isRefreshing && -y >= this.pullHeight) {
this.isRefreshing = true;
this.isLoading = true;
scroller.minPosition.y = -this.pullHeight;
this.setViewState('loading');
if (this.getRefreshFn()) {
this.getRefreshFn().call(this, this.onLoadComplete, this);
}
else {
list.getStore().load();
}
}
},
Fernando Karnagi
-
28 Jan 2012 2:34 PM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
Thank you for the report, this has been fixed for the next release.
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote