You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Gary Yang (JIRA)" <ji...@apache.org> on 2014/03/12 20:24:59 UTC

[jira] [Created] (FLEX-34140) Add oldValue property to Collection event( CollectionEventKind.REFRESH/CollectionEventKind.RESET )

Gary Yang created FLEX-34140:
--------------------------------

             Summary: Add oldValue property to Collection event( CollectionEventKind.REFRESH/CollectionEventKind.RESET )
                 Key: FLEX-34140
                 URL: https://issues.apache.org/jira/browse/FLEX-34140
             Project: Apache Flex
          Issue Type: Task
          Components: Collections
            Reporter: Gary Yang


For a CollectionEvent, when event kind is 

CollectionEventKind.Add REPLACE REMOVE MOVE UPDATE

it is revertable, because for ADD/REMOVE, developers can call REMOVE/ADD, for MOVE, there's a oldLocation; for REPLACE: the items are PropertyChangeEvent which has oldValue.

but for CollectionEventKind.REFRESH and RESET, it is NOT revertable!!!


If Flex can add a new oldValue or oldList, ( or depreciated: give developers a event right before dispatching ), Flex will be better!!!



--
This message was sent by Atlassian JIRA
(v6.2#6252)