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/03/22 08:13:14 UTC
[jira] [Updated] (FLEX-21066) Make removeItem( item:Object)
accessible in ArrayCollection
[ https://issues.apache.org/jira/browse/FLEX-21066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean updated FLEX-21066:
---------------------------------
Labels: easyfix (was: )
> Make removeItem( item:Object) accessible in ArrayCollection
> -----------------------------------------------------------
>
> Key: FLEX-21066
> URL: https://issues.apache.org/jira/browse/FLEX-21066
> Project: Apache Flex
> Issue Type: Improvement
> Components: Collections
> Affects Versions: Adobe Flex SDK 4.1 (Release)
> Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
> Reporter: Adobe JIRA
> Labels: easyfix
>
> Steps to reproduce:
> 1. try removing an item from an ArrayCollection
> 2. try to use removeItem( item:Object)-method
> 3. method does not exist
>
> Actual Results:
> Compiler Error
>
> Expected Results:
> Item should be removed
>
> Workaround (if any):
> Call ac.removeItemAt( ac.getItemIndex( item) ).
> The internal list used in ArrayCollection-class is an ArrayList that does have a method removeItem( item:Object). Please make this method accessible from ArrayCollection, for example by adding the following to ListCollectionView.as
> public function removeItem( item:Object ):Boolean
> {
> return list.removeItem( item );
> }
--
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