You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Alex Harui (JIRA)" <ji...@apache.org> on 2016/11/19 06:16:58 UTC
[jira] [Resolved] (FLEX-35061) var keyword "internal" scoping
[ 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)