On 10/11/16, 4:52 AM, "[email protected] on behalf of Carlos Rovira"
<[email protected] on behalf of [email protected]> wrote:
>Thanks Alex,
>
>thanks for the explanation, just to understand what's behind.... I
>remember
>that initially the way some components translates to JS was using a js
>file
>as a templete (so some code was transpired and some other not). AFAIR this
>was removed and now all is converted to JS, and now is inside of code. For
>example in js:Container line 89: element = document.createElement('div')
>as
>WrappedHTMLElement;
That's correct. We don't write any JavaScript any more! All of our .js
is transpiled from AS. And it has been a huge savings by doing so. There
are conditional compile flags for JS and SWF-specific code paths in most
lower-level components.
>And js:Container is not in "Core" and is in "HTML" since is dependent of
>the what you want to output, (as it's a version in CreateJS and others).
>Is this right?
org.apache.flex.html.Container maps to js:Container and wraps a DIV on the
JS side. CreateJS is not involved at all in the basic components. The
basic component set tries to use thinly-wrapped HTMLElements. There is a
separate CreateJS.swc that has its own component set that leverages
CreateJS.
HTH,
-Alex