Re: [FlexJS] 'new int()' causes problem in FlexJS 0.7
On 10/13/16, 9:39 PM, "Pan Li"wrote: > > >Hi Alex >there is no reason to use "new". I am asking this because we have old Flex >code to migrate to FlexJS, and I noticed a difference OK, well I made a change to the compiler to generate a call to org.apache.flex.utils.Language._int(). Should be in the next nightly build in about 3 hours from now. Thanks, -Alex
Re: [FlexJS] 'new int()' causes problem in FlexJS 0.7
Hi Alex there is no reason to use "new". I am asking this because we have old Flex code to migrate to FlexJS, and I noticed a difference My Apache Flex community contribution is working on the open source Moonshine-IDE.com for FlexJS.
Re: [FlexJS] 'new int()' causes problem in FlexJS 0.7
On 10/13/16, 3:32 AM, "Pan Li"wrote: > > >this line works in Flex application as expected >test = new int("123") > >but it doesn't work in FlexJS 0.7, it does build but the created >javascript >fails with javascript error: >Can't find variable: int I'll look into it, but is there any reason to use "new"? IOW, why not just: test = int("123") -Alex
[FlexJS] 'new int()' causes problem in FlexJS 0.7
this line works in Flex application as expected test = new int("123") but it doesn't work in FlexJS 0.7, it does build but the created javascript fails with javascript error: Can't find variable: int on the other hand, this does work: test = new Number("123") Thank you Pan Li http://Prominic.NET | Skype: PanProminic pa...@prominic.net cellphone: +86-1860152 My Apache Flex community contribution is working on the open source Moonshine-IDE.com for FlexJS.