What steps will reproduce the problem? 1. Enable UIList.pullDownRefresh 2. Issue a UIList.model.loadJSON("", URLRequest) call, or similar; 3. Pull down.
What is the expected output? What do you see instead? The list data should be reloaded, but it fails to do so since the URLRequest parameter isn't being saved.
What version of the product are you using? On what operating system? Latest one.
Please provide any additional information below. I added a new protected var for the request, and replaced these lines in loadJSON and loadXML:
if (!request)
request = new URLRequest(url);
with:
if (!request)
request = _request ? _request : new URLRequest(url);
else
_request = request;
If not, maybe the pulldown refresh could launch a custom function instead of forcing a refresh.
Comment #1
Posted on Jul 14, 2012 by Swift KangarooI've also added a simple getter to Model in order to expose parent, useful mainly in event handlers.
Another thing I may change is how the pull down refresh is made... I was thinking it would be better to refresh when you release the list.
Comment #2
Posted on Jul 14, 2012 by Swift KangarooForgot to mention, a problem with previous my replace is that you may want to load a simple url on subsequent loadJSON calls, but since you pass a null request it may take previous one that was saved, but it's not problem in my case.
Comment #3
Posted on Jul 30, 2012 by Grumpy BirdIncluded in the next release. With this accessor method for _parent:-
public function get page():Sprite {
return _parent;
}
Comment #4
Posted on Aug 6, 2012 by Swift KangarooI don't see this change nor any other on latest check ins (madComponents 0.7.6). The only ones available are for ExtendedMadnessLib. Have the changes been overlooked? or am I missing something?
Comment #5
Posted on Aug 6, 2012 by Swift KangarooNevermind, I've just seen the updated main page regarding the SVN issue.
Status: Fixed
Labels:
Type-Defect
Priority-Medium