flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bigosma...@apache.org
Subject [3/4] git commit: [flex-asjs] [refs/heads/feature/fontawesome] - Add support for 'size' functionality
Date Wed, 04 Jan 2017 10:18:46 GMT
Add support for 'size' functionality


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

Branch: refs/heads/feature/fontawesome
Commit: 79b255c10d4a05aa77b5982c7fa1938e6f5121ea
Parents: b4ff819
Author: OmPrakash Muppirala <bigosmallm@gmail.com>
Authored: Wed Jan 4 02:13:27 2017 -0800
Committer: OmPrakash Muppirala <bigosmallm@gmail.com>
Committed: Wed Jan 4 02:16:18 2017 -0800

----------------------------------------------------------------------
 .../FontAwesome/src/main/flex/FAClasses.as      |  5 ++--
 .../flex/org/apache/flex/fa/FontAwesomeIcon.as  | 28 +++++++++++++++++---
 2 files changed, 28 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/79b255c1/frameworks/projects/FontAwesome/src/main/flex/FAClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/FontAwesome/src/main/flex/FAClasses.as b/frameworks/projects/FontAwesome/src/main/flex/FAClasses.as
index e231687..e5dcd47 100644
--- a/frameworks/projects/FontAwesome/src/main/flex/FAClasses.as
+++ b/frameworks/projects/FontAwesome/src/main/flex/FAClasses.as
@@ -27,8 +27,9 @@ package
 	*/
 	internal class FAClasses
 	{
-		import org.apache.flex.fa.FontAwesomeIconType; FontAwesomeIconType;
-	}
+			import org.apache.flex.fa.FontAwesomeIconType; FontAwesomeIconType;
+			import org.apache.flex.fa.FontAwesomeIconSize; FontAwesomeIconSize;
+		}
 
 }
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/79b255c1/frameworks/projects/FontAwesome/src/main/flex/org/apache/flex/fa/FontAwesomeIcon.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/FontAwesome/src/main/flex/org/apache/flex/fa/FontAwesomeIcon.as
b/frameworks/projects/FontAwesome/src/main/flex/org/apache/flex/fa/FontAwesomeIcon.as
index a734fde..7c86c75 100644
--- a/frameworks/projects/FontAwesome/src/main/flex/org/apache/flex/fa/FontAwesomeIcon.as
+++ b/frameworks/projects/FontAwesome/src/main/flex/org/apache/flex/fa/FontAwesomeIcon.as
@@ -57,6 +57,7 @@ package org.apache.flex.fa
         COMPILE::JS
         protected var textNode:Text;
 		protected var _iconType:String;
+		protected var _size:String;
 
         /**
          * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
@@ -86,20 +87,41 @@ package org.apache.flex.fa
             return _iconType;
         }
 		
-		public function set iconType(v:String):void
+		public function set iconType(value:String):void
 		{
 			COMPILE::JS
             {
-                element.classList.remove(v);
+                element.classList.remove(value);
             }
 
-            _iconType = v;
+            _iconType = value;
 
             COMPILE::JS
             {
                 element.classList.add(_iconType);
             }
 		}
+		
+		
+        public function get size():String
+        {
+            return _size;
+        }
+		
+		public function set size(value:String):void
+        {
+            COMPILE::JS
+            {
+                element.classList.remove(value);
+            }
+
+            _size = value;
 
+            COMPILE::JS
+            {
+                element.classList.add(value);
+            }
+        }
+		
     }
 }


Mime
View raw message