You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2019/01/04 11:33:33 UTC

[royale-asjs] branch develop updated: Shows bug with Collections that are unable to use "for each" to iterate its elements. Filled an issue in gihub as 363

This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new ef29257  Shows bug with Collections that are unable to use "for each" to iterate its elements. Filled an issue in gihub as 363
ef29257 is described below

commit ef292577f54ef4e7d108d9a78e782777aece98b2
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Fri Jan 4 12:33:24 2019 +0100

    Shows bug with Collections that are unable to use "for each" to iterate its elements. Filled an issue in gihub as 363
---
 examples/royale/TourDeJewel/src/main/royale/ListPlayGround.mxml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/examples/royale/TourDeJewel/src/main/royale/ListPlayGround.mxml b/examples/royale/TourDeJewel/src/main/royale/ListPlayGround.mxml
index fa25440..a16b6d7 100644
--- a/examples/royale/TourDeJewel/src/main/royale/ListPlayGround.mxml
+++ b/examples/royale/TourDeJewel/src/main/royale/ListPlayGround.mxml
@@ -116,6 +116,13 @@ limitations under the License.
 				if (!iconVO) return '[Nothing Selected]';
 				return 'label:\'' + iconVO.label + '\', icon:\'' + iconVO.icon + '\'';
 			}
+
+			// private function traceCollectionLabels():void
+			// {
+			// 	for each (var iconVO:IconListVO in listModel.iconListData) {				
+			// 		trace(iconVO.label);				
+			// 	}
+			// }
 		]]>
 	</fx:Script>
 
@@ -174,6 +181,8 @@ limitations under the License.
 								<j:SearchFilterForList list="{iconList}"/>
 							</j:beads>
 						</j:TextInput>
+						<!-- <j:Button text="Trace Collection Labels" click="traceCollectionLabels()"/> -->
+						
 						<!-- example below for dataProvider binding -->
 						<!--<j:List labelField="label" dataProvider="{iconList.dataProvider}" selectedIndex="3" width="120" height="200" />-->
 					</j:VGroup>