[ 
https://issues.apache.org/jira/browse/FLEX-35070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15235230#comment-15235230
 ] 

Alex Harui commented on FLEX-35070:
-----------------------------------

The generated code for (assuming xmlItem:XML and oldList:XMLList)
  for each(xmlItem in oldList)

Should be:
  var foreachiter0_target = a;
  for (var foreachiter0 in foreachiter0_target.elementNames())
  {
     var p = foreachiter0_target.child(foreachiter0);

The unit test is passing.  The call to elementNames should allow you control 
over what gets iterated.

> "for each" not working in XMLList
> ---------------------------------
>
>                 Key: FLEX-35070
>                 URL: https://issues.apache.org/jira/browse/FLEX-35070
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FalconJX
>    Affects Versions: Apache FalconJX 0.6.0
>            Reporter: Harbs
>
> I don't have a full test case right now, but I believe the following will 
> fail.
> var newList:XMLList = new XMLList();
> newList.appendChild(<foo/>);
> var xmlItem:XML;
> for each(xmlItem in oldList)
>   newList.appendChild(xmlItem);
> If necessary, I can put together a (non)working test case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to