[
https://issues.apache.org/jira/browse/FLEX-35005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andy Dufilie resolved FLEX-35005.
---------------------------------
Resolution: Fixed
Not sure when this was resolved, but it's working in the nightly build.
> 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)