You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ca...@apache.org on 2016/11/09 23:31:37 UTC
flex-asjs git commit: Fix SimpleCSSValuesImpl to support values. Problem was spaces in property ‘background’ , so we need to trim it
Repository: flex-asjs
Updated Branches:
refs/heads/feature-autobuild/example-maven-dirs 9633ef5c4 -> ef3aaaec8
Fix SimpleCSSValuesImpl to support values. Problem was spaces in property \u2018background\u2019 , 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/feature-autobuild/example-maven-dirs
Commit: ef3aaaec82ea6a39dceeccee6f5d0c181883d04d
Parents: 9633ef5
Author: Carlos Rovira <ca...@apache.org>
Authored: Thu Nov 10 00:31:33 2016 +0100
Committer: Carlos Rovira <ca...@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;