0 Replies Latest reply on Apr 9, 2010 2:31 PM by kevinklin

    [svn:fx-trunk] 15315: Merge 15313 from 4.x to trunk.

    kevinklin Adobe Employee

      Revision: 15315

      Revision: 15315

      Author:   klin@adobe.com

      Date:     2010-04-09 14:31:18 -0700 (Fri, 09 Apr 2010)

      Log Message:

      ***********

      Merge 15313 from 4.x to trunk.

       

      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/trunk/frameworks/projects/spark/src/spark/components/List.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as

       

      Property Changed:

      ****************

          flex/sdk/trunk/