Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Apache FalconJX 0.6.0
-
None
Description
Consider the following code:
public class LocaleManager
{
public static function get localeStrings():Object
{
return
}
}
public class MyClass
{
private static const txtStr:String = LocaleManager.localeStrings.ADD_TEXT_HERE;
public static const sampleXML:XML = <text>
<content>
</content>
</text>;
}
sampleXML should compile on the javascript side to:
MyClass.sampleXML = new XML( '<text><content> + MyClass.txtStr + '</content,</text>');
While in fact the MyClass.txtStr falls out, and it evaluates to NaN in Javascript.