flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Ent (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-33903) Type coercion missing, perhaps
Date Wed, 13 Nov 2013 21:55:22 GMT
Peter Ent created FLEX-33903:
--------------------------------

             Summary: 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


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.1#6144)

Mime
View raw message