You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/08/05 01:18:30 UTC

[royale-asjs] 05/09: also implement fontWeight

This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit bac3d84bcdbd594d2889f5f134d0c679b7402690
Author: Alex Harui <ah...@apache.org>
AuthorDate: Sat Aug 4 12:23:43 2018 -0700

    also implement fontWeight
---
 .../projects/MXRoyale/src/main/royale/mx/core/UIComponent.as      | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
index f8567e1..6f58774 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -4049,15 +4049,13 @@ public class UIComponent extends UIBase
      */
     public function get fontWeight():Object
     {
-        if (GOOG::DEBUG)
-            trace("fontWeight not implemented");
-        return 0;
+        return ValuesManager.valuesImpl.getValue(this, "fontWeight");
     }
     public function set fontWeight(value:Object):void
     {
-        if (GOOG::DEBUG)
-            trace("fontWeight not implemented");
+        setStyle("fontWeight", value);
     }
+    
 	[Inspectable(category="General")]
 
 	/*