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

Andy Dufilie resolved FLEX-35004.
---------------------------------
    Resolution: Fixed

> package-level functions do not get cross-compiled
> -------------------------------------------------
>
>                 Key: FLEX-35004
>                 URL: https://issues.apache.org/jira/browse/FLEX-35004
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Falcon, FlexJS
>    Affects Versions: Apache FlexJS 0.5.0
>            Reporter: Andy Dufilie
>            Priority: Minor
>
> Example file (packageLevelFunction.as):
> {code}
> package foo.bar {
>       public function packageLevelFunction(a:int, b:int):int {
>               return a + b;
>       }
> }
> {code}
> This file works fine in ActionScript, but when cross-compiling to JavaScript, 
> the output file (packageLevelFunction.js) is blank. It should generate 
> something like this:
> {code}
> goog.provide('foo.bar.packageLevelFunction');
> foo.bar.packageLevelFunction = function(a, b) { return a + b; };
> {code}



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

Reply via email to