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

XML literals are not compiled into constructors when the variable was already initialized

    XMLWordPrintableJSON

Details

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

    Description

      var child:XML = <pop><child name="Sam"/></pop>;
      xml1.appendChild(child);
      child = <pop><child name="George"/></pop>;
      xml1.appendChild(child);

      compiles into:
      var /** @type

      {XML}

      */ child = new XML( '<pop><child name="Sam"/></pop>') ;
      xml1.appendChild(child);
      child = '<pop><child name="George"/></pop>';
      xml1.appendChild(child);

      Attachments

        Activity

          People

            aharui Alex Harui
            harbs Harbs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: