You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Carlos Rovira <ca...@apache.org> on 2019/06/16 20:32:04 UTC
inject_html does not work in modules
Hi,
I found the following problem working with modules:
https://github.com/apache/royale-asjs/issues/427
Hope we can think in some way to solve this problem so modules can use
class with inject
the workaround for now is import the library and use the class in the main
app, but this defeats the module purpose to avoid
loading code that you are not using in the shell app.
thanks
--
Carlos Rovira
http://about.me/carlosrovira
Re: inject_html does not work in modules
Posted by Harbs <ha...@gmail.com>.
You can use loadJavascript instead.
https://github.com/apache/royale-asjs/blob/develop/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/js/loadJavascript.as <https://github.com/apache/royale-asjs/blob/develop/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/js/loadJavascript.as>
> On Jun 16, 2019, at 4:32 PM, Carlos Rovira <ca...@apache.org> wrote:
>
> Hi,
>
> I found the following problem working with modules:
>
> https://github.com/apache/royale-asjs/issues/427
>
> Hope we can think in some way to solve this problem so modules can use
> class with inject
> the workaround for now is import the library and use the class in the main
> app, but this defeats the module purpose to avoid
> loading code that you are not using in the shell app.
>
> thanks
>
> --
> Carlos Rovira
> http://about.me/carlosrovira