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

XML literal not outputting correctly

    XMLWordPrintableJSON

Details

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

    Description

      The following AS:

      		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} />;
      		}
      

      has the following JS output:

      /**
       * @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=' +  + ' />');
      };
      

      While the output should be something like this:

      /**
       * @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 + '" />');
      };
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: