flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject [15/40] git commit: [flex-asjs] [refs/heads/tlf] - Clean up MDL example: - Models do not have to extend EventDispatcher, cause they are used in ConstantBinding - Put "Bindable" on top of the VO classes
Date Sun, 26 Mar 2017 13:02:07 GMT
Clean up MDL example:
- Models do not have to extend EventDispatcher, cause they are used in ConstantBinding
- Put "Bindable" on top of the VO classes


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

Branch: refs/heads/tlf
Commit: f9adc6c12deb2b43e7d564a3e91e00dc28db7a0b
Parents: 7cd690d
Author: piotrz <piotrz@apache.org>
Authored: Sun Mar 19 16:53:58 2017 +0100
Committer: piotrz <piotrz@apache.org>
Committed: Sun Mar 19 16:53:58 2017 +0100

----------------------------------------------------------------------
 examples/flexjs/MDLExample/src/main/flex/models/FooterModel.as | 5 +----
 examples/flexjs/MDLExample/src/main/flex/models/ListsModel.as  | 6 ++----
 .../MDLExample/src/main/flex/models/MainNavigationModel.as     | 4 +---
 examples/flexjs/MDLExample/src/main/flex/models/MenuModel.as   | 5 +----
 examples/flexjs/MDLExample/src/main/flex/models/TablesModel.as | 5 ++---
 examples/flexjs/MDLExample/src/main/flex/models/TabsModel.as   | 4 +---
 examples/flexjs/MDLExample/src/main/flex/vos/MenuItemVO.as     | 4 +---
 .../flexjs/MDLExample/src/main/flex/vos/NavigationLinkVO.as    | 3 +--
 examples/flexjs/MDLExample/src/main/flex/vos/ProductVO.as      | 1 -
 examples/flexjs/MDLExample/src/main/flex/vos/TabVO.as          | 3 +--
 10 files changed, 11 insertions(+), 29 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f9adc6c1/examples/flexjs/MDLExample/src/main/flex/models/FooterModel.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/models/FooterModel.as b/examples/flexjs/MDLExample/src/main/flex/models/FooterModel.as
index 9d4e9a3..017da93 100644
--- a/examples/flexjs/MDLExample/src/main/flex/models/FooterModel.as
+++ b/examples/flexjs/MDLExample/src/main/flex/models/FooterModel.as
@@ -18,10 +18,7 @@
 ////////////////////////////////////////////////////////////////////////////////
 package models
 {
-	import org.apache.flex.events.EventDispatcher;
-	//import vos.*;
-
-	public class FooterModel extends EventDispatcher
+	public class FooterModel 
 	{
 		/**
 		 * Used in the Footer example.

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f9adc6c1/examples/flexjs/MDLExample/src/main/flex/models/ListsModel.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/models/ListsModel.as b/examples/flexjs/MDLExample/src/main/flex/models/ListsModel.as
index 6b780fe..3bda245 100644
--- a/examples/flexjs/MDLExample/src/main/flex/models/ListsModel.as
+++ b/examples/flexjs/MDLExample/src/main/flex/models/ListsModel.as
@@ -18,10 +18,9 @@
 ////////////////////////////////////////////////////////////////////////////////
 package models
 {
-	import org.apache.flex.events.EventDispatcher;
-	import vos.*;
+	import vos.ActorVO;
 
-	public class ListsModel extends EventDispatcher
+	public class ListsModel 
 	{
 		/**
 		 * Used in the List example.
@@ -51,6 +50,5 @@ package models
 		{
 			return _actors;
 		}		
-
 	}
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f9adc6c1/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 0c358e4..0c191a1 100644
--- a/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
+++ b/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
@@ -18,11 +18,9 @@
 ////////////////////////////////////////////////////////////////////////////////
 package models
 {
-    import org.apache.flex.events.EventDispatcher;
-
     import vos.NavigationLinkVO;
 
-    public class MainNavigationModel extends EventDispatcher
+    public class MainNavigationModel
     {
         private var _mainNavigation:Array = [
                 new NavigationLinkVO("About", "https://getmdl.io/index.html"),

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f9adc6c1/examples/flexjs/MDLExample/src/main/flex/models/MenuModel.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/models/MenuModel.as b/examples/flexjs/MDLExample/src/main/flex/models/MenuModel.as
index 9faa83e..bbae844 100644
--- a/examples/flexjs/MDLExample/src/main/flex/models/MenuModel.as
+++ b/examples/flexjs/MDLExample/src/main/flex/models/MenuModel.as
@@ -18,12 +18,9 @@
 ////////////////////////////////////////////////////////////////////////////////
 package models
 {
-    import org.apache.flex.events.EventDispatcher;
-    import org.apache.flex.events.IEventDispatcher;
-
     import vos.MenuItemVO;
 
-    public class MenuModel extends EventDispatcher
+    public class MenuModel
     {
         private var _menuItems:Array = [
             new MenuItemVO("Some Action"),

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f9adc6c1/examples/flexjs/MDLExample/src/main/flex/models/TablesModel.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/models/TablesModel.as b/examples/flexjs/MDLExample/src/main/flex/models/TablesModel.as
index 19e355e..d533ee7 100644
--- a/examples/flexjs/MDLExample/src/main/flex/models/TablesModel.as
+++ b/examples/flexjs/MDLExample/src/main/flex/models/TablesModel.as
@@ -18,10 +18,9 @@
 ////////////////////////////////////////////////////////////////////////////////
 package models
 {
-	import org.apache.flex.events.EventDispatcher;
-	import vos.*;
+	import vos.MaterialVO;
 
-	public class TablesModel extends EventDispatcher
+	public class TablesModel
 	{
 		/**
 		 * Used in the Tables example.

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f9adc6c1/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 75b778e..c8a2f8e 100644
--- a/examples/flexjs/MDLExample/src/main/flex/models/TabsModel.as
+++ b/examples/flexjs/MDLExample/src/main/flex/models/TabsModel.as
@@ -18,11 +18,9 @@
 ////////////////////////////////////////////////////////////////////////////////
 package models
 {
-    import org.apache.flex.events.EventDispatcher;
-
     import vos.TabVO;
 
-    public class TabsModel extends EventDispatcher
+    public class TabsModel
     {
         private var _tabs:Array = [
                 new TabVO("tab1", "Tab One"),

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f9adc6c1/examples/flexjs/MDLExample/src/main/flex/vos/MenuItemVO.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/vos/MenuItemVO.as b/examples/flexjs/MDLExample/src/main/flex/vos/MenuItemVO.as
index 3fc48f0..691b18f 100644
--- a/examples/flexjs/MDLExample/src/main/flex/vos/MenuItemVO.as
+++ b/examples/flexjs/MDLExample/src/main/flex/vos/MenuItemVO.as
@@ -18,13 +18,11 @@
 ////////////////////////////////////////////////////////////////////////////////
 package vos
 {
+    [Bindable]
     public class MenuItemVO
     {
-        [Bindable]
         public var label:String;
-        [Bindable]
         public var disabled:Boolean;
-        [Bindable]
         public var hasDivider:Boolean;
 
         public function MenuItemVO(label:String, hasDivider:Boolean = false, disabled:Boolean
= false)

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f9adc6c1/examples/flexjs/MDLExample/src/main/flex/vos/NavigationLinkVO.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/vos/NavigationLinkVO.as b/examples/flexjs/MDLExample/src/main/flex/vos/NavigationLinkVO.as
index 8e8c998..ad5ec82 100644
--- a/examples/flexjs/MDLExample/src/main/flex/vos/NavigationLinkVO.as
+++ b/examples/flexjs/MDLExample/src/main/flex/vos/NavigationLinkVO.as
@@ -18,11 +18,10 @@
 ////////////////////////////////////////////////////////////////////////////////
 package vos
 {
+    [Bindable]
     public class NavigationLinkVO
     {
-        [Bindable]
         public var label:String;
-        [Bindable]
         public var href:String;
 
         public function NavigationLinkVO(label:String, href:String)

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f9adc6c1/examples/flexjs/MDLExample/src/main/flex/vos/ProductVO.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/vos/ProductVO.as b/examples/flexjs/MDLExample/src/main/flex/vos/ProductVO.as
index 4466035..d09115a 100644
--- a/examples/flexjs/MDLExample/src/main/flex/vos/ProductVO.as
+++ b/examples/flexjs/MDLExample/src/main/flex/vos/ProductVO.as
@@ -21,7 +21,6 @@ package vos
     [Bindable]
 	public class ProductVO
 	{
-
 		public var label:String;
 	}
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f9adc6c1/examples/flexjs/MDLExample/src/main/flex/vos/TabVO.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/vos/TabVO.as b/examples/flexjs/MDLExample/src/main/flex/vos/TabVO.as
index 7a38a69..15b5c44 100644
--- a/examples/flexjs/MDLExample/src/main/flex/vos/TabVO.as
+++ b/examples/flexjs/MDLExample/src/main/flex/vos/TabVO.as
@@ -18,11 +18,10 @@
 ////////////////////////////////////////////////////////////////////////////////
 package vos
 {
+    [Bindable]
     public class TabVO
     {
-        [Bindable]
         public var tabId:String;
-        [Bindable]
         public var label:String;
 
         public function TabVO(tabId:String, label:String)


Mime
View raw message