You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Piotr Zarzycki (JIRA)" <ji...@apache.org> on 2016/05/03 09:17:13 UTC

[jira] [Reopened] (FLEX-34912) Object class in JS.swc is not dynamic, resulting in error when setting properties

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

Piotr Zarzycki reopened FLEX-34912:
-----------------------------------
      Assignee: Piotr Zarzycki  (was: Michael Schmalle)

> 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.5.0
>            Reporter: Josh Tynjala
>            Assignee: Piotr Zarzycki
>             Fix For: Apache FalconJX 0.5.0
>
>
> 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)