Harbs created FLEX-35074:
----------------------------

             Summary: Wrong method used for setting XML attributes
                 Key: FLEX-35074
                 URL: https://issues.apache.org/jira/browse/FLEX-35074
             Project: Apache Flex
          Issue Type: Bug
          Components: FalconJX
    Affects Versions: Apache FalconJX 0.6.0
            Reporter: Harbs


The following code:
{code:actionscript}
var rects:XMLList = svg..rect;
rects[1].@width = "100px";
{code}
compiles into:
{code:javascript}
  var /** @type {XMLList} */ rects = svg.descendants('rect');
  rects[1].attribute('width') = "100px";
{code}
It should be:
{code:javascript}
  var /** @type {XMLList} */ rects = svg.descendants('rect');
  rects[1].setAttribute('width',"100px");
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to