You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Mihai Chira (JIRA)" <ji...@apache.org> on 2016/02/11 13:29:18 UTC
[jira] [Assigned] (FLEX-20313) SelectItem on AdvancedDataGrid use
weird code
[ 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)