You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Michael Schmalle (JIRA)" <ji...@apache.org> on 2015/06/02 21:52:50 UTC

[jira] [Commented] (FLEX-33903) Type coercion missing, perhaps

    [ https://issues.apache.org/jira/browse/FLEX-33903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14569643#comment-14569643 ] 

Michael Schmalle commented on FLEX-33903:
-----------------------------------------

Any update on this [~aharui]? I ran into it as well testing casts on the left side.

> Type coercion missing, perhaps
> ------------------------------
>
>                 Key: FLEX-33903
>                 URL: https://issues.apache.org/jira/browse/FLEX-33903
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FalconJX, FlexJS
>         Environment: Mac OS X
>            Reporter: Peter Ent
>            Assignee: Erik de Bruin
>
> I have AS code like this (from org.apache.flex.html.staticControls.DataGrid):
> public function set dataProvider(value:Object):void
> {
>    IDataGridModel(model).dataProvider = value;
> }
> Compiling into JavaScript the result looks like:
> org.apache.flex.html.staticControls.DataGrid.prototype.set_dataProvider = function(value) {
>   IDataGridModel(this.get_model()).set_dataProvider(value);
> };
> The causes "IDataGridModel not found" runtime error. I believe IDataGridModel should be fully qualified (the goog.require is in the file) but perhaps that even would not produce the correct coercion (not sure, really).



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