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

Object literals don't always work

    XMLWordPrintableJSON

Details

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

    Description

      The following code:
      public class XML
      {

      static public var ignoreComments:Boolean = true;
      static public var ignoreProcessingInstructions:Boolean = true;
      static public var ignoreWhitespace:Boolean = true;
      static public var prettyIndent:int = 2;
      static public var prettyPrinting:Boolean = true;

      static public function settings():Object
      {
      return

      { ignoreComments : ignoreComments, ignoreProcessingInstructions : ignoreProcessingInstructions, ignoreWhitespace : ignoreWhitespace, prettyIndent : prettyIndent, prettyPrinting : prettyPrinting }

      }

      }
      compiles into:
      XML.settings = function() {
      return

      {XML.ignoreComments:XML.ignoreComments, XML.ignoreProcessingInstructions:XML.ignoreProcessingInstructions, XML.ignoreWhitespace:XML.ignoreWhitespace, XML.prettyIndent:XML.prettyIndent, XML.prettyPrinting:XML.prettyPrinting}

      ;
      };

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: