Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB65CC480 for ; Tue, 23 Dec 2014 14:53:13 +0000 (UTC) Received: (qmail 83918 invoked by uid 500); 23 Dec 2014 14:53:13 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 83891 invoked by uid 500); 23 Dec 2014 14:53:13 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 83881 invoked by uid 99); 23 Dec 2014 14:53:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Dec 2014 14:53:13 +0000 Date: Tue, 23 Dec 2014 14:53:13 +0000 (UTC) From: "Erik de Bruin (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (FLEX-34657) SelectedIndices order is messed up MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-34657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Erik de Bruin resolved FLEX-34657. ---------------------------------- Resolution: Fixed Fix Version/s: Apache Flex 4.14.0 I even threw in some Mustella tests ;-) > SelectedIndices order is messed up > ---------------------------------- > > Key: FLEX-34657 > URL: https://issues.apache.org/jira/browse/FLEX-34657 > Project: Apache Flex > Issue Type: Bug > Components: Spark: List > Affects Versions: Apache Flex 4.13.0 > Reporter: Chris Velevitch > Assignee: Erik de Bruin > Fix For: Apache Flex 4.14.0 > > Attachments: Main.mxml > > > The order of the existing selected indices is reversed each time a item is selected or deselected. > In spark.components.list.as, the function calculateSelectedIndices at line 1646, the loop is using splice to rebuild the selected indices. This is reversing the order of the previously selected indices before adding the new item. The loop should be using push to preserve the original order. -- This message was sent by Atlassian JIRA (v6.3.4#6332)