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 8a293b8 BE0013: ModuleLoader now can load a module on request, works
on debug mode but release mode has some issue, maybe a minification one
8a293b8 is described below
commit 8a293b866f3210a11854df14bc81c70deebc8527
Author: Carlos Rovira <[email protected]>
AuthorDate: Wed Jun 19 20:51:28 2019 +0200
BE0013: ModuleLoader now can load a module on request, works on debug mode
but release mode has some issue, maybe a minification one
---
.../MainJewelApp/src/main/royale/MainJewelApp.mxml | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git
a/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/MainJewelApp/src/main/royale/MainJewelApp.mxml
b/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/MainJewelApp/src/main/royale/MainJewelApp.mxml
index 2e74f75..a152a55 100644
---
a/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/MainJewelApp/src/main/royale/MainJewelApp.mxml
+++
b/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/MainJewelApp/src/main/royale/MainJewelApp.mxml
@@ -27,12 +27,9 @@
// inject_html does not wotk in modules
import MaterialIconType; MaterialIconType;
- [Bindable]
- public var code_txt:String;
-
public function loadModule():void
{
-
+ moduleLoader.loadModule();
}
]]>
</fx:Script>
@@ -52,9 +49,7 @@
<j:Label html="This example uses Modules to load other
application parts"/>
- <j:ModuleLoader localId="moduleLoader"
- modulePath="modules" moduleName="JewelModule"
- />
+ <j:ModuleLoader localId="moduleLoader" modulePath="modules"
moduleName="JewelModule"/>
<j:Button text="Load a Module" emphasis="primary"
click="loadModule()"/>
</j:Card>