The output JS looks ok to me.

AS:
super.replaceChildren(termIdx, termIdx+1);


JS:
org.apache.flex.textLayout.elements.ParagraphElement.superClass_.replaceChi
ldren.apply(this, [ termIdx, termIdx + 1] );


I could be wrong, but I thought there is no "super" in ES5.

Does it not work correctly?  Are you getting Closure Compiler issues or
runtime issues?

-Alex

On 3/7/17, 1:21 PM, "Harbs" <harbs.li...@gmail.com> wrote:

>I tried the following two workarounds and neither one worked:
>
>super["replaceChildren"].apply(this, applyParams);
>
>var func:Function = super.replaceChildren;
>func.apply(this, applyParams);
>
>> On Mar 7, 2017, at 11:13 PM, Harbs <harbs.li...@gmail.com> wrote:
>> 
>> Most of the other ones are “nice to fix”, but have been not too bad to
>>work around.
>> 
>> This one seems more serious to me. (i.e. I’m not sure how to work
>>around it.)
>> 
>> The “super” dropped off in the Javascript, and I don’t know why.
>> 
>> https://paste.apache.org/FpNl <https://paste.apache.org/FpNl>
>> 
>> Harbs
>

Reply via email to