0 Replies Latest reply on Feb 18, 2009 5:17 PM by (Ryan_Frishberg)

    [svn:fx-trunk] 5004: Working on cleaning up the renderers again when the dataProvider is set.

    Level 1
      Revision: 5004
      Author: rfrishbe@adobe.com
      Date: 2009-02-18 17:17:22 -0800 (Wed, 18 Feb 2009)

      Log Message:
      -----------
      Working on cleaning up the renderers again when the dataProvider is set. At the dataProvider setter time, we clean up the old ones. At commitProperties() time we create the new ones (in the virtual case, this is done at updateDisplayList() time).

      I had to add some cleanup around a dataProvider reset or refresh because we need to do this cleanup there as well. However, we can't rely on the dataProvider to loop through the item renderers because it may have changed, so we rely on our own data structure, indexToRenderers. This makes finding the actual item associated with the renderer a little hard, but for most use-cases it should be fine.

      QE Notes: -
      Doc Notes: -
      Bugs: SDK-19364
      Reviewer: Glenn
      tests: checkintests, DataGroup, FxList, FxButtonBar, FxDataContainer

      Ticket Links:
      ------------
      http://bugs.adobe.com/jira/browse/SDK-19364

      Modified Paths:
      --------------
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as