flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nimai Malle (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-35061) var keyword "internal" scoping
Date Tue, 05 Apr 2016 14:33:26 GMT
Nimai Malle created FLEX-35061:
----------------------------------

             Summary: 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


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