Copy link to clipboard
Copied
Revision: 15313
Revision: 15313
Author: klin@adobe.com
Date: 2010-04-09 13:51:34 -0700 (Fri, 09 Apr 2010)
Log Message:
***********
Fix for http://bugs.adobe.com/jira/browse/SDK-23296 and http://bugs.adobe.com/jira/browse/SDK-26069. List was throwing an RTE because selectedItems was not being updated when the dataProvider is filtered and refreshed. List was also returning null selectedItems and selectedIndices if nothing was selected before instead of an empty vector.
We now clear selection whenever a refresh happens to account for sorting/filtering. Because we only keep the selectedIndex around, we have no way of recovering the correct selection after sorting or filtering. I've also changed the selectedItems/Indices setters and getters to return an empty vector to avoid some RTEs when users grab those values.
QE notes: No
Doc notes: No
Bugs: SDK-23296, SDK-26069
Reviewer: Jason
Tests run: checkintests
Is noteworthy for integration: No
Ticket Links:
***********
http://bugs.adobe.com/jira/browse/SDK-23296
http://bugs.adobe.com/jira/browse/SDK-26069
http://bugs.adobe.com/jira/browse/SDK-23296
http://bugs.adobe.com/jira/browse/SDK-26069
Modified Paths:
**************
flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/List.as
flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as