You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/01/04 11:32:50 UTC

[GitHub] carlosrovira opened a new issue #363: for each doesn't work with Collections

carlosrovira opened a new issue #363: for each doesn't work with Collections
URL: https://github.com/apache/royale-asjs/issues/363
 
 
   Apache Royale is not capable at the moment to loop through a Collection using a "for each" loop.
   
   Here's a code example that shows the problem (committed in Tour De Jewel List Section commented):
   
   `private function traceCollectionLabels():void
   			{
   				for each (var iconVO:IconListVO in listModel.iconListData) {				
   					trace(iconVO.label);				
   				}
   			}`
   
   produces:
   
   > Uncaught TypeError: Cannot read property 'label' of undefined
       at ListPlayGround.ListPlayGround_traceCollectionLabels (ListPlayGround.js:514)
       at ListPlayGround.$EH10 (ListPlayGround.mxml:184)
       at Function.goog.events.fireListener [as googFireListener] (events.js:744)
       at Function.org.apache.royale.core.HTMLElementWrapper.fireListenerOverride [as googFireListener] (HTMLElementWrapper.js:61)
       at Object.org.apache.royale.core.ElementWrapper.fireListenerOverride [as fireListener] (ElementWrapper.as:188)
       at HTMLButtonElement.goog.events.handleBrowserEvent_ (events.js:870)
       at HTMLButtonElement.f (events.js:289)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services