flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harbs (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-35074) Wrong method used for setting XML attributes
Date Mon, 11 Apr 2016 22:04:25 GMT
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)

Mime
View raw message