You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by da...@apache.org on 2014/12/17 17:30:55 UTC

git commit: [flex-sdk] [refs/heads/develop] - override the styleName setter function to fix the change skin bug

Repository: flex-sdk
Updated Branches:
  refs/heads/develop 9f408cc04 -> 4ad4d9bda


override the styleName setter function to fix the change skin bug

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

Branch: refs/heads/develop
Commit: 4ad4d9bda784cef6e47faafc17123f5d2fbf6a57
Parents: 9f408cc
Author: DarkStone <Da...@163.com>
Authored: Thu Dec 18 00:16:35 2014 +0800
Committer: DarkStone <Da...@163.com>
Committed: Thu Dec 18 00:16:35 2014 +0800

----------------------------------------------------------------------
 .../spark/components/supportClasses/SkinnableComponent.as   | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/4ad4d9bd/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as b/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
index 2a8c730..d4581a3 100644
--- a/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
+++ b/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as
@@ -419,6 +419,15 @@ public class SkinnableComponent extends UIComponent
     /**
      *  @private
      */
+    override public function set styleName(value:Object):void
+	{
+		clearStyle("skinClass");
+		super.styleName = value;
+	}
+    
+    /**
+     *  @private
+     */
     private function validateSkinChange():void
     {
         // If our new skin Class happens to match our existing skin Class there is no