flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLEX-35061) var keyword "internal" scoping
Date Sat, 19 Nov 2016 06:16:58 GMT

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

Alex Harui resolved FLEX-35061.
-------------------------------
       Resolution: Fixed
    Fix Version/s: Apache FlexJS 0.8.0

Seems to be working now.  Not sure what fixed it.

> var keyword "internal" scoping
> ------------------------------
>
>                 Key: FLEX-35061
>                 URL: https://issues.apache.org/jira/browse/FLEX-35061
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FalconJX
>            Reporter: Nimai Malle
>             Fix For: Apache FlexJS 0.8.0
>
>
> Class vars declared using the "internal" keyword are not accessed in JavaScript using
"this."
> ///// ACTIONSCRIPT /////
> package { 
> public class foo { 
>         internal var bar:String = "baz"; 
>         public function foo() { 
>                 trace( bar ); 
>         } 
> } 
> } 
> ///// GENERATED JAVASCRIPT /////
> /** 
>  * @constructor 
>  */ 
> foo = function() { 
>   org.apache.flex.utils.Language.trace(bar);  // <-- Uncaught ReferenceError: bar
is not defined 
> }; 
> /** 
>  * @export 
>  * @type {string} 
>  */ 
> foo.prototype.bar = "baz"; 



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

Mime
View raw message