[
https://issues.apache.org/jira/browse/FLEX-35199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pan Li closed FLEX-35199.
-------------------------
> Array.removeAt() is broken in javascript mode in 0.8 dev
> --------------------------------------------------------
>
> Key: FLEX-35199
> URL: https://issues.apache.org/jira/browse/FLEX-35199
> Project: Apache Flex
> Issue Type: Bug
> Components: FlexJS
> Affects Versions: Apache FlexJS 0.8.0
> Reporter: Pan Li
> Priority: Blocker
> Fix For: Apache FalconJX 0.8.0
>
>
> this function doesn't work in 0.8 dev.
> {code}
> <fx:Script>
> <![CDATA[
> function foo():void
> {
> var a: Array = new Array("a", "b", "c");
> a.removeAt(2);
> }
>
> ]]>
> </fx:Script>
> {code}
> the code is built to
> {code}
> testlang07dec06.prototype.foo = function() {
> var /** @type {Array} */ a = new Array("a", "b", "c");
> a.removeAt(2);
> };
> {code}
> but in earlier FlexJS sdk, it was built to
> a.splice(2,1);
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)