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 6CB8118C1F for ; Thu, 11 Feb 2016 12:29:18 +0000 (UTC) Received: (qmail 27651 invoked by uid 500); 11 Feb 2016 12:29:18 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 27611 invoked by uid 500); 11 Feb 2016 12:29:18 -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 27589 invoked by uid 99); 11 Feb 2016 12:29:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Feb 2016 12:29:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2B2212C1F5B for ; Thu, 11 Feb 2016 12:29:18 +0000 (UTC) Date: Thu, 11 Feb 2016 12:29:18 +0000 (UTC) From: "Mihai Chira (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (FLEX-20313) SelectItem on AdvancedDataGrid use weird code 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-20313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mihai Chira reassigned FLEX-20313: ---------------------------------- Assignee: Mihai Chira > SelectItem on AdvancedDataGrid use weird code > --------------------------------------------- > > Key: FLEX-20313 > URL: https://issues.apache.org/jira/browse/FLEX-20313 > Project: Apache Flex > Issue Type: Bug > Components: mx: DataGrid > Affects Versions: Adobe Flex SDK 3.2 (Release) > Environment: Affected OS(s): All OS Platforms > Affected OS(s): All OS Platforms > Language Found: English > Reporter: Adobe JIRA > Assignee: Mihai Chira > Fix For: Apache Flex 4.8 (parity release) > > > In HierarchicalCollectionViewCursor, lines 400 to 426: > public function findAny(values:Object):Boolean > { > seek(CursorBookmark.FIRST); > > var done:Boolean = false; > while (!done) > { > var o:Object = hierarchicalData.getData(current); > > var matches:Boolean = true; > for (var p:String in values) > { > if (o[p] != values[p]) > { > matches = false; > break; > } > } > if (matches) > return true; > done = moveNext(); // Here is the problem > } > return false; > } > > moveNext returns true if it was possible to move to the next position and false otherwise, so done should be not moveNext. > Each time this method is called, it jumps after the first item and return false. > This code was not tested ... no ? -- This message was sent by Atlassian JIRA (v6.3.4#6332)