You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/07/09 05:46:58 UTC
[3/4] git commit: [flex-sdk] [refs/heads/develop] - fixed slightly
odd formatting
fixed slightly odd formatting
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/e5b34438
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/e5b34438
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/e5b34438
Branch: refs/heads/develop
Commit: e5b34438c2e67dfbbac4c02dc4bfdf578cf13881
Parents: 61d15a7
Author: Justin Mclean <jm...@apache.org>
Authored: Tue Jul 9 13:34:52 2013 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Tue Jul 9 13:34:52 2013 +1000
----------------------------------------------------------------------
.../src/mx/controls/AdvancedDataGrid.as | 41 ++++++++++----------
1 file changed, 21 insertions(+), 20 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e5b34438/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as b/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as
index 2b71aab..20e9862 100644
--- a/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as
+++ b/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as
@@ -8152,26 +8152,27 @@ public class AdvancedDataGrid extends AdvancedDataGridBaseEx
{
if (event is CollectionEvent)
{
- var ceEvent:CollectionEvent = CollectionEvent(event)
- if (ceEvent.kind == CollectionEventKind.RESET)
- {
- // if the data is grouped, update the groupLabelField.
- if (_rootModel is IGroupingCollection && IGroupingCollection(_rootModel).grouping)
- groupLabelField = IGroupingCollection(_rootModel).grouping.label;
-
- if (_rootModel is IGroupingCollection2 && IGroupingCollection2(_rootModel).grouping)
- groupLabelField = IGroupingCollection2(_rootModel).grouping.label;
-
- // if collection is reset, then expand the items if displayItemsExpanded is true
- if (displayItemsExpanded)
- expandAll();
- }
- if (ceEvent.kind == CollectionEventKind.REFRESH)
- {
- // if collection is reset, then expand the items if displayItemsExpanded is true
- if (displayItemsExpanded)
- expandAll();
- }
+ var ceEvent:CollectionEvent = CollectionEvent(event);
+
+ if (ceEvent.kind == CollectionEventKind.RESET)
+ {
+ // if the data is grouped, update the groupLabelField.
+ if (_rootModel is IGroupingCollection && IGroupingCollection(_rootModel).grouping)
+ groupLabelField = IGroupingCollection(_rootModel).grouping.label;
+
+ if (_rootModel is IGroupingCollection2 && IGroupingCollection2(_rootModel).grouping)
+ groupLabelField = IGroupingCollection2(_rootModel).grouping.label;
+
+ // if collection is reset, then expand the items if displayItemsExpanded is true
+ if (displayItemsExpanded)
+ expandAll();
+ }
+ if (ceEvent.kind == CollectionEventKind.REFRESH)
+ {
+ // if collection is reset, then expand the items if displayItemsExpanded is true
+ if (displayItemsExpanded)
+ expandAll();
+ }
}
super.collectionChangeHandler(event);