You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Constantin A. (JIRA)" <ji...@apache.org> on 2014/06/10 14:50:03 UTC
[jira] [Commented] (FLEX-34226) TypeError when using a spark List
with an empty dataProvider within an mx Form
[ https://issues.apache.org/jira/browse/FLEX-34226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14026401#comment-14026401 ]
Constantin A. commented on FLEX-34226:
--------------------------------------
still a valid bug in 4.12.1
> TypeError when using a spark List with an empty dataProvider within an mx Form
> ------------------------------------------------------------------------------
>
> Key: FLEX-34226
> URL: https://issues.apache.org/jira/browse/FLEX-34226
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: List
> Affects Versions: Apache Flex 4.11.0
> Environment: OS X
> Reporter: Gareth Daniel Smith
> Priority: Minor
> Labels: easyfix, easytest
> Attachments: empty-list-in-form-bug.zip
>
>
> I will attach an example that throws a TypeError because the item renderer is passed an object that is not an instance of Point.
> I suspect the dodgy code is here: https://github.com/apache/flex-sdk/blob/323882d8a2619046e3833ae5e7033e7d9a70b4a1/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as#L311
> Note that the mx List uses null instead of {} for the dummy element: https://github.com/apache/flex-sdk/blob/323882d8a2619046e3833ae5e7033e7d9a70b4a1/frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as#L1475
--
This message was sent by Atlassian JIRA
(v6.2#6252)