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 2018/09/14 23:13:40 UTC
[royale-asjs] branch develop updated: Fix jewel list add item
example
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 a41f9e3 Fix jewel list add item example
a41f9e3 is described below
commit a41f9e3b20139e562030b1970034dbb9fac6e47d
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Sep 15 01:13:31 2018 +0200
Fix jewel list add item example
---
.../blog/BE0004_Adding_an_item_to_a_Jewel_List/asconfig.json | 9 ++++++---
examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/pom.xml | 2 +-
.../src/main/royale/BE0004_Adding_an_item_to_a_Jewel_List.mxml | 3 +++
examples/royale/JewelExample/asconfig.json | 1 +
examples/royale/JewelExample/pom.xml | 2 +-
5 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/asconfig.json b/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/asconfig.json
index 4b6259e..e4c56ca 100644
--- a/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/asconfig.json
+++ b/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/asconfig.json
@@ -20,12 +20,15 @@
"config": "royale",
"compilerOptions": {
"debug": false,
- "targets": ["JSRoyale","SWF"],
- "source-map": true
+ "targets": ["SWF", "JSRoyale"],
+ "source-map": true,
+ "html-template": "src/main/resources/jewel-example-index-template.html",
+ "theme": "${royalelib}/themes/JewelTheme/src/main/resources/defaults.css"
},
+ "copySourcePathAssets": true,
"additionalOptions": "-remove-circulars -js-output-optimization=skipAsCoercions",
"files":
[
- "src/main/royale/App.mxml"
+ "src/main/royale/BE0004_Adding_an_item_to_a_Jewel_List.mxml"
]
}
diff --git a/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/pom.xml b/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/pom.xml
index 5a7bd9f..3b18571 100644
--- a/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/pom.xml
+++ b/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/pom.xml
@@ -41,7 +41,7 @@
<extensions>true</extensions>
<configuration>
<mainClass>BE0004_Adding_an_item_to_a_Jewel_List.mxml</mainClass>
- <targets>JSRoyale,SWF</targets>
+ <targets>SWF,JSRoyale</targets>
<debug>false</debug>
<htmlTemplate>${basedir}/target/javascript/bin/js-debug/jewel-example-index-template.html</htmlTemplate>
</configuration>
diff --git a/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/src/main/royale/BE0004_Adding_an_item_to_a_Jewel_List.mxml b/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/src/main/royale/BE0004_Adding_an_item_to_a_Jewel_List.mxml
index f8d451c..901d83f 100644
--- a/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/src/main/royale/BE0004_Adding_an_item_to_a_Jewel_List.mxml
+++ b/examples/blog/BE0004_Adding_an_item_to_a_Jewel_List/src/main/royale/BE0004_Adding_an_item_to_a_Jewel_List.mxml
@@ -45,6 +45,9 @@
<html:H3 text="Avengers Character List"/>
<j:List id="list" width="200" height="300" change="changeHandler(event)">
+ <j:beads>
+ <j:AddListItemRendererForArrayListData/>
+ </j:beads>
<j:dataProvider>
<js:ArrayList id="avengersCharacters" source="[Iron Man, Hulk, Thor, Captain America, Black Widow]" />
</j:dataProvider>
diff --git a/examples/royale/JewelExample/asconfig.json b/examples/royale/JewelExample/asconfig.json
index 4d62030..3c79aa7 100644
--- a/examples/royale/JewelExample/asconfig.json
+++ b/examples/royale/JewelExample/asconfig.json
@@ -3,6 +3,7 @@
"compilerOptions": {
"debug": false,
"targets": ["JSRoyale"],
+ "source-map": true,
"html-template": "src/main/resources/jewel-example-index-template.html",
"theme": "${royalelib}/themes/JewelTheme/src/main/resources/defaults.css"
},
diff --git a/examples/royale/JewelExample/pom.xml b/examples/royale/JewelExample/pom.xml
index 4d38582..a0ce991 100644
--- a/examples/royale/JewelExample/pom.xml
+++ b/examples/royale/JewelExample/pom.xml
@@ -41,7 +41,7 @@
<extensions>true</extensions>
<configuration>
<mainClass>App.mxml</mainClass>
- <targets>JSRoyale,SWF</targets>
+ <targets>SWF,JSRoyale</targets>
<debug>false</debug>
<htmlTemplate>${basedir}/target/javascript/bin/js-debug/jewel-example-index-template.html</htmlTemplate>
<additionalCompilerOptions>-source-map=true</additionalCompilerOptions>