[
https://issues.apache.org/jira/browse/FLEX-34912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Josh Tynjala updated FLEX-34912:
--------------------------------
Description:
Try the following code:
var test:Object = {};
test.whatever = "some value";
The compiler will give the following error:
Access of possibly undefined property whatever.
The reason is because the Object class in JS.swc isn't marked as dynamic.
There is a workaround. A property can be set with square brackets:
test["whatever"] = "some value";
was:
Try the following code:
var test:Object = {};
test.whatever = "some value";
The compiler will give the following error:
Access of possibly undefined property whatever.
The reason is because the Object class in JS.swc isn't marked as dynamic.
> Object class in JS.swc is not dynamic, resulting in error when setting
> properties
> ---------------------------------------------------------------------------------
>
> Key: FLEX-34912
> URL: https://issues.apache.org/jira/browse/FLEX-34912
> Project: Apache Flex
> Issue Type: Bug
> Components: FalconJX
> Affects Versions: Apache FalconJX 0.0.3
> Reporter: Josh Tynjala
>
> Try the following code:
> var test:Object = {};
> test.whatever = "some value";
> The compiler will give the following error:
> Access of possibly undefined property whatever.
> The reason is because the Object class in JS.swc isn't marked as dynamic.
> There is a workaround. A property can be set with square brackets:
> test["whatever"] = "some value";
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)