You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Alex Harui (JIRA)" <ji...@apache.org> on 2016/12/07 06:15:58 UTC

[jira] [Resolved] (FLEX-35200) Array.removeAt() is broken in javascript mode in 0.8 dev

     [ https://issues.apache.org/jira/browse/FLEX-35200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Harui resolved FLEX-35200.
-------------------------------
    Resolution: Duplicate

> Array.removeAt() is broken in javascript mode in 0.8 dev
> --------------------------------------------------------
>
>                 Key: FLEX-35200
>                 URL: https://issues.apache.org/jira/browse/FLEX-35200
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FlexJS
>    Affects Versions: Apache FlexJS 0.8.0
>            Reporter: Pan Li
>            Priority: Blocker
>             Fix For: Apache FlexJS 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)