incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cframp...@apache.org
Subject svn commit: r1370028 [26/43] - in /incubator/flex/whiteboard/cframpton/adobe.next: ./ frameworks/ frameworks/projects/advancedgrids/src/mx/collections/ frameworks/projects/advancedgrids/src/mx/controls/ frameworks/projects/airframework/src/mx/managers/...
Date Mon, 06 Aug 2012 21:26:02 GMT
Modified: incubator/flex/whiteboard/cframpton/adobe.next/frameworks/projects/spark/src/spark/components/DataGroup.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/cframpton/adobe.next/frameworks/projects/spark/src/spark/components/DataGroup.as?rev=1370028&r1=1370027&r2=1370028&view=diff
==============================================================================
--- incubator/flex/whiteboard/cframpton/adobe.next/frameworks/projects/spark/src/spark/components/DataGroup.as
(original)
+++ incubator/flex/whiteboard/cframpton/adobe.next/frameworks/projects/spark/src/spark/components/DataGroup.as
Mon Aug  6 21:25:54 2012
@@ -286,7 +286,8 @@ public class DataGroup extends GroupBase
         if (_typicalItem === value)
             return;
         _typicalItem = explicitTypicalItem = value;
-        invalidateTypicalItemRenderer();
+        typicalItemChanged = true;
+        invalidateProperties();
     }
     
     private function setTypicalLayoutElement(element:ILayoutElement):void
@@ -1543,12 +1544,11 @@ public class DataGroup extends GroupBase
             if (virtualRendererIndices.indexOf(index) == -1)
                 virtualRendererIndices.push(index);
             
-            var item:Object;
+            const item:Object = dataProvider.getItemAt(index);
             
             addedVirtualRenderer = false;  // set by createVirtualRendererForItem()
             if (!elt)
             {
-                item = dataProvider.getItemAt(index);
                 elt = createVirtualRendererForItem(item);
                 elt.visible = true;
                 elt.includeInLayout = true;



Mime
View raw message