Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK 3.2 (Release)
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
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])
}
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 ?