flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [11/16] git commit: [flex-asjs] [refs/heads/develop] - handle more than one fx:style block
Date Fri, 10 Oct 2014 14:34:58 GMT
handle more than one fx:style block


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

Branch: refs/heads/develop
Commit: d6dcd95d2c7259f36f35c5806f3ae81cd561472f
Parents: ce5f83e
Author: Alex Harui <aharui@apache.org>
Authored: Thu Oct 9 14:26:43 2014 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Oct 10 07:34:33 2014 -0700

----------------------------------------------------------------------
 .../src/org/apache/flex/core/SimpleCSSValuesImpl.as       | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d6dcd95d/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleCSSValuesImpl.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleCSSValuesImpl.as
b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleCSSValuesImpl.as
index 1a96f64..263d3a2 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleCSSValuesImpl.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleCSSValuesImpl.as
@@ -82,6 +82,16 @@ package org.apache.flex.core
 			}
 			c = mainClass.constructor as Class;
             generateCSSStyleDeclarations(c["factoryFunctions"], c["data"]);
+            var i:int = 1;
+            while (true)
+            {
+                var ffName:String = "factoryFunctions" + i.toString();
+                var ff:Object = c[ffName];
+                if (ff == null)
+                    break;
+                generateCSSStyleDeclarations(c[ffName], c["data" + i.toString()]);
+                i++;
+            }
         }
         
         /**


Mime
View raw message