You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/04/21 03:49:15 UTC
[jira] [Resolved] (FLEX-25074) RangeError when trying to remove an
item from a list
[ https://issues.apache.org/jira/browse/FLEX-25074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean resolved FLEX-25074.
----------------------------------
Resolution: Not A Problem
If index is -1 you should get a Range Error so this is expected.
> RangeError when trying to remove an item from a list
> ----------------------------------------------------
>
> Key: FLEX-25074
> URL: https://issues.apache.org/jira/browse/FLEX-25074
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: List
> Affects Versions: Adobe Flex SDK 4.1 (Release)
> Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Browser: Firefox 3.x
> Language Found: English
> Reporter: Adobe JIRA
>
> Steps to reproduce:
> 1. Create a statement similar to the following:
> var index:int = listArray.getItemIndex(data);
> listArray.removeItemAt(index);
> 2.Bind the array to a list as the data provider.
> 3.
>
> Actual Results:
> The following error is displayed in the debugger:
> RangeError: Index '-1' specified is out of bounds.
> at mx.collections::ListCollectionView/removeItemAt()[E:\dev\4.x\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:753]
>
> Expected Results:
> The item is removed from the list without error.
>
>
> Workaround (if any):
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira