initialize modules

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

Branch: refs/heads/develop
Commit: 8e7c65320d79cc0f66c9949c4362ac68ac5266bc
Parents: 020c1cb
Author: Alex Harui <aha...@apache.org>
Authored: Tue Aug 15 13:17:00 2017 -0700
Committer: Alex Harui <aha...@apache.org>
Committed: Tue Aug 15 13:19:34 2017 -0700

----------------------------------------------------------------------
 .../flex/org/apache/flex/core/SimpleCSSValuesImpl.as    | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8e7c6532/frameworks/projects/Core/src/main/flex/org/apache/flex/core/SimpleCSSValuesImpl.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/SimpleCSSValuesImpl.as
 
b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/SimpleCSSValuesImpl.as
index 3c3f955..003ca12 100644
--- 
a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/SimpleCSSValuesImpl.as
+++ 
b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/SimpleCSSValuesImpl.as
@@ -81,16 +81,26 @@ package org.apache.flex.core
         public function init(main:Object):void
         {
                        var styleClassName:String;
+            var mainClassName:String;
+            
                        var c:Class;
                        if (!values)
                        {
                                values = {};
                    mainClass = main;
-                   var mainClassName:String = getQualifiedClassName(mainClass);
+                mainClassName = getQualifiedClassName(mainClass);
                                styleClassName = "_" + mainClassName + 
"_Styles";
                                c = 
ApplicationDomain.currentDomain.getDefinition(styleClassName) as Class;
                 generateCSSStyleDeclarations(c["factoryFunctions"], c["data"]);
                        }
+            else if (main is IFlexInfo)
+            {
+                mainClass = main;
+                mainClassName = getQualifiedClassName(mainClass);
+                styleClassName = "_" + mainClassName + "_Styles";
+                c = 
ApplicationDomain.currentDomain.getDefinition(styleClassName) as Class;
+                generateCSSStyleDeclarations(c["factoryFunctions"], 
c["data"]);                
+            }
                        c = main.constructor as Class;
             generateCSSStyleDeclarations(c["factoryFunctions"], c["data"]);
             if (hasEventListener("init"))

Reply via email to