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-35067) XML literals are not compiled into constructors when the variable was already initialized
Date Sun, 10 Apr 2016 14:32:25 GMT
Harbs created FLEX-35067:
----------------------------

             Summary: XML literals are not compiled into constructors when the variable was
already initialized
                 Key: FLEX-35067
                 URL: https://issues.apache.org/jira/browse/FLEX-35067
             Project: Apache Flex
          Issue Type: Bug
          Components: FalconJX
            Reporter: Harbs


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);




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

Mime
View raw message