Andy Dufilie created FLEX-35005:
-----------------------------------

             Summary: internal class members do not get prefixed with "this." 
when cross-compiling
                 Key: FLEX-35005
                 URL: https://issues.apache.org/jira/browse/FLEX-35005
             Project: Apache Flex
          Issue Type: Bug
          Components: Falcon, FlexJS
    Affects Versions: Apache FlexJS 0.5.0
            Reporter: Andy Dufilie
            Priority: Minor


AS input:
{code}
package foo.bar {
        public class TestInternalProperty {
                public var myPublicVar:Number = 1;
                private var myPrivateVar:Number = 2;
                internal var myInternalVar:Number = 3;
                
                public function test():Number {
                        return myPublicVar + myPrivateVar + myInternalVar;
                }
        }
}
{code}

JS output (relevant part only):
{code}
foo.bar.TestInternalProperty.prototype.myPublicVar = 1;
foo.bar.TestInternalProperty.prototype.myPrivateVar = 2;
foo.bar.TestInternalProperty.prototype.myInternalVar = 3;

foo.bar.TestInternalProperty.prototype.test = function() {
  return this.myPublicVar + this.myPrivateVar + myInternalVar;
};
{code}

In the {{test()}} function, notice that {{myInternalVar}} does not become 
{{this.myInternalVar}} like the public and private variables.



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

Reply via email to