Pan Li created FLEX-35200:
-----------------------------

             Summary: 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)

Reply via email to