You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Harbs <ha...@gmail.com> on 2017/03/07 21:13:47 UTC

[FalconJX] yet another one

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

Re: [FalconJX] yet another one

Posted by Harbs <ha...@gmail.com>.
Thanks! It appears to work.

Now the only problems I’m (currently) seeing are that requires are being specified before provides.

> On Mar 8, 2017, at 9:06 AM, Alex Harui <ah...@adobe.com> wrote:
> 
> I pushed changes that should fix this.
> 
> On 3/7/17, 2:08 PM, "Harbs" <harbs.lists@gmail.com <ma...@gmail.com>> wrote:
> 
>> The other one is the problem:
>> 
>> super.replaceChildren.apply(this, applyParams);
>> 
>> Becomes:
>> .replaceChildren.apply(this, applyParams);
>> 
>> The “super” just drops out…
>> 
>> My workaround attempts were in the AS3, nit the JS output.
>> 
>>> On Mar 7, 2017, at 11:37 PM, Alex Harui <ah...@adobe.com> wrote:
>>> 
>>> The output JS looks ok to me.
>>> 
>>> AS:
>>> super.replaceChildren(termIdx, termIdx+1);
>>> 
>>> 
>>> JS:
>>> 
>>> org.apache.flex.textLayout.elements.ParagraphElement.superClass_.replaceC
>>> hi
>>> 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.lists@gmail.com
>>> <mailto:harbs.lists@gmail.com <ma...@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 <ha...@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> <https://paste.apache.org/FpNl <https://paste.apache.org/FpNl>>
>>>>> <https://paste.apache.org/FpNl <https://paste.apache.org/FpNl> <https://paste.apache.org/FpNl <https://paste.apache.org/FpNl>>>
>>>>> 
>>>>> Harbs


Re: [FalconJX] yet another one

Posted by Alex Harui <ah...@adobe.com>.
I pushed changes that should fix this.

On 3/7/17, 2:08 PM, "Harbs" <ha...@gmail.com> wrote:

>The other one is the problem:
>
>super.replaceChildren.apply(this, applyParams);
>
>Becomes:
>.replaceChildren.apply(this, applyParams);
>
>The “super” just drops out…
>
>My workaround attempts were in the AS3, nit the JS output.
>
>> On Mar 7, 2017, at 11:37 PM, Alex Harui <ah...@adobe.com> wrote:
>> 
>> The output JS looks ok to me.
>> 
>> AS:
>> super.replaceChildren(termIdx, termIdx+1);
>> 
>> 
>> JS:
>> 
>>org.apache.flex.textLayout.elements.ParagraphElement.superClass_.replaceC
>>hi
>> 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.lists@gmail.com
>><ma...@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 <ha...@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>
>>>><https://paste.apache.org/FpNl <https://paste.apache.org/FpNl>>
>>>> 
>>>> Harbs
>


Re: [FalconJX] yet another one

Posted by Harbs <ha...@gmail.com>.
The other one is the problem:

super.replaceChildren.apply(this, applyParams);

Becomes:
.replaceChildren.apply(this, applyParams);

The “super” just drops out…

My workaround attempts were in the AS3, nit the JS output.

> On Mar 7, 2017, at 11:37 PM, Alex Harui <ah...@adobe.com> wrote:
> 
> 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.lists@gmail.com <ma...@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 <ha...@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> <https://paste.apache.org/FpNl <https://paste.apache.org/FpNl>>
>>> 
>>> Harbs


Re: [FalconJX] yet another one

Posted by Alex Harui <ah...@adobe.com>.
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" <ha...@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 <ha...@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
>


Re: [FalconJX] yet another one

Posted by Harbs <ha...@gmail.com>.
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 <ha...@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