flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [34/50] [abbrv] git commit: [flex-asjs] [refs/heads/dual] - The defaults.css for MDL framework specifies ArrayList mappers for tab components; the MDLExample is using Array data. This commit turns the Arrays into ArrayLists.
Date Tue, 18 Apr 2017 06:17:58 GMT
The defaults.css for MDL framework specifies ArrayList mappers for tab components; the MDLExample
is using Array data. This commit turns the Arrays into ArrayLists.


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/1e96ee68
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/1e96ee68
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/1e96ee68

Branch: refs/heads/dual
Commit: 1e96ee68266a937e4a429991ddf6d758c940aad3
Parents: 331371c
Author: Peter Ent <pent@apache.org>
Authored: Mon Apr 10 09:39:25 2017 -0400
Committer: Peter Ent <pent@apache.org>
Committed: Mon Apr 10 09:39:25 2017 -0400

----------------------------------------------------------------------
 .../src/main/flex/models/MainNavigationModel.as        |  7 ++++---
 .../MDLExample/src/main/flex/models/TabsModel.as       | 13 +++++++------
 2 files changed, 11 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1e96ee68/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as b/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
index 0c191a1..f423d19 100644
--- a/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
+++ b/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
@@ -19,6 +19,7 @@
 package models
 {
     import vos.NavigationLinkVO;
+    import org.apache.flex.collections.ArrayList;
 
     public class MainNavigationModel
     {
@@ -50,7 +51,7 @@ package models
             return _drawerNavigation;
         }
 
-        private var _componentsTabs:Array = [
+        private var _componentsTabs:ArrayList = new ArrayList([
             new NavigationLinkVO("Cards", "cards_panel"),
             new NavigationLinkVO("Chips", "chips_panel"),
             new NavigationLinkVO("Sliders", "sliders_panel"),
@@ -68,9 +69,9 @@ package models
             new NavigationLinkVO("Menu", "menus_panel"),
             new NavigationLinkVO("Badges", "badges_panel"),
             new NavigationLinkVO("Icons", "icons_panel")
-        ];
+        ]);
 
-        public function get componentsTabs():Array
+        public function get componentsTabs():ArrayList
         {
             return _componentsTabs;
         }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1e96ee68/examples/flexjs/MDLExample/src/main/flex/models/TabsModel.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/models/TabsModel.as b/examples/flexjs/MDLExample/src/main/flex/models/TabsModel.as
index c8a2f8e..9ef7c99 100644
--- a/examples/flexjs/MDLExample/src/main/flex/models/TabsModel.as
+++ b/examples/flexjs/MDLExample/src/main/flex/models/TabsModel.as
@@ -19,27 +19,28 @@
 package models
 {
     import vos.TabVO;
+    import org.apache.flex.collections.ArrayList;
 
     public class TabsModel
     {
-        private var _tabs:Array = [
+        private var _tabs:ArrayList = new ArrayList([
                 new TabVO("tab1", "Tab One"),
                 new TabVO("tab2", "Tab Two"),
                 new TabVO("tab3", "Tab Three")
-        ];
+        ]);
 
-        private var _tabsLayout:Array = [
+        private var _tabsLayout:ArrayList = new ArrayList([
             new TabVO("starks_panel", "Starks"),
             new TabVO("lannisters_panel", "Lannisters"),
             new TabVO("targaryens_panel", "Targaryens")
-        ];
+        ]);
 
-        public function get tabs():Array
+        public function get tabs():ArrayList
         {
             return _tabs;
         }
 
-        public function get tabsLayout():Array
+        public function get tabsLayout():ArrayList
         {
             return _tabsLayout;
         }


Mime
View raw message