Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-35074

Wrong method used for setting XML attributes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Apache FalconJX 0.6.0
    • Apache FalconJX 0.7.0
    • FalconJX
    • None

    Description

      The following code:

      var rects:XMLList = svg..rect;
      rects[1].@width = "100px";
      

      compiles into:

        var /** @type {XMLList} */ rects = svg.descendants('rect');
        rects[1].attribute('width') = "100px";
      

      It should be:

        var /** @type {XMLList} */ rects = svg.descendants('rect');
        rects[1].setAttribute('width',"100px");
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            harbs Harbs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: