flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cd...@apache.org
Subject [49/50] flex-asjs git commit: Fix SimpleCSSValuesImpl to support values. Problem was spaces in property ‘background’ , so we need to trim it
Date Thu, 10 Nov 2016 08:49:44 GMT
Fix SimpleCSSValuesImpl to support values. Problem was spaces in property ‘background’
, so we need to trim it


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

Branch: refs/heads/develop
Commit: ef3aaaec82ea6a39dceeccee6f5d0c181883d04d
Parents: 9633ef5
Author: Carlos Rovira <carlosrovira@apache.org>
Authored: Thu Nov 10 00:31:33 2016 +0100
Committer: Carlos Rovira <carlosrovira@apache.org>
Committed: Thu Nov 10 00:31:33 2016 +0100

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/core/SimpleCSSValuesImpl.as     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ef3aaaec/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 7957070..1aa6661 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
@@ -30,6 +30,7 @@ package org.apache.flex.core
 	import org.apache.flex.events.ValueChangeEvent;
 	import org.apache.flex.events.ValueEvent;
 	import org.apache.flex.utils.CSSUtils;
+    import org.apache.flex.utils.StringUtil;
     
     /**
      *  The SimpleCSSValuesImpl class implements a minimal set of
@@ -590,7 +591,7 @@ package org.apache.flex.core
             var parts:Array = styles.split(";");
             for each (var part:String in parts)
             {
-                var pieces:Array = part.split(":");
+                var pieces:Array = StringUtil.splitAndTrim(part, ":");
                 var value:String = pieces[1];
                 if (value == "null")
                     obj[pieces[0]] = null;


Mime
View raw message