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-35131) XML literal not outputting correctly
Date Tue, 13 Sep 2016 07:00:32 GMT
Harbs created FLEX-35131:
----------------------------

             Summary: XML literal not outputting correctly
                 Key: FLEX-35131
                 URL: https://issues.apache.org/jira/browse/FLEX-35131
             Project: Apache Flex
          Issue Type: Bug
          Components: FalconJX
    Affects Versions: Apache FalconJX 0.7.0
            Reporter: Harbs
            Assignee: Alex Harui


The following AS:
{code:actionscript}
		public function getXML(m:Matrix):XML{
			var ta:Point = m.transformPoint(anchor);
			var tl:Point = m.transformPoint(leftDirection);
			var tr:Point = m.transformPoint(rightDirection);
			return <PathPointType Anchor={ta.x + " " + ta.y} LeftDirection={tl.x + " " + tl.y} RightDirection={tr.x
+ " " + tr.y} />;
		}
{code}
has the following JS output:
{code:javascript}
/**
 * @export
 * @param {org.apache.flex.geom.Matrix} m
 * @return {XML}
 */
com.printui.model.vos.PathPointVO.prototype.getXML = function(m) {
  var /** @type {org.apache.flex.geom.Point} */ ta = m.transformPoint(this.anchor);
  var /** @type {org.apache.flex.geom.Point} */ tl = m.transformPoint(this.leftDirection);
  var /** @type {org.apache.flex.geom.Point} */ tr = m.transformPoint(this.rightDirection);
  return new XML( '<PathPointType Anchor=' +  + ' LeftDirection=' +  + ' RightDirection='
+  + ' />');
};
{code}

While the output should be something like this:
{code:javascript}
/**
 * @export
 * @param {org.apache.flex.geom.Matrix} m
 * @return {XML}
 */
com.printui.model.vos.PathPointVO.prototype.getXML = function(m) {
  var /** @type {org.apache.flex.geom.Point} */ ta = m.transformPoint(this.anchor);
  var /** @type {org.apache.flex.geom.Point} */ tl = m.transformPoint(this.leftDirection);
  var /** @type {org.apache.flex.geom.Point} */ tr = m.transformPoint(this.rightDirection);
  return new XML( '<PathPointType Anchor=' + ta.x + " " + ta.y + ' LeftDirection=' + tl.x
+ " " + tl.y + ' RightDirection=' + tr.x + " " + tr.y + ' />');
};
{code}



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

Mime
View raw message