flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piotr Zarzycki (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-35005) internal class members do not get prefixed with "this." when cross-compiling
Date Tue, 03 May 2016 06:34:12 GMT

     [ https://issues.apache.org/jira/browse/FLEX-35005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Piotr Zarzycki updated FLEX-35005:
----------------------------------
    Fix Version/s: Apache FalconJX 0.6.0

> 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
>             Fix For: Apache FalconJX 0.6.0
>
>
> 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)

Mime
View raw message