[
https://issues.apache.org/jira/browse/FLEX-35131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex Harui resolved FLEX-35131.
-------------------------------
Resolution: Fixed
Fix Version/s: Apache FalconJX 0.8.0
c26bafd60afdd829bcfd0e84678cba1bc31478d4
> 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
> Fix For: Apache FalconJX 0.8.0
>
>
> 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)