• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

[svn:fx-4.x] 15313: Fix for http://bugs.adobe.com/jira/browse/ SDK-23296 and http://bugs.adobe.com/jira/browse/SDK-26069.

Adobe Employee ,
Apr 09, 2010 Apr 09, 2010

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

TOPICS
Commits

Views

544

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines