You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/09/05 07:39:59 UTC

[4/7] git commit: [flex-asjs] [refs/heads/develop] - ignore undefined values

ignore undefined values


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

Branch: refs/heads/develop
Commit: d1e0bc3e624bca77530518ae0749f0f43ea9b4fd
Parents: d9dec95
Author: Alex Harui <ah...@apache.org>
Authored: Fri Sep 4 22:29:44 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Sep 4 22:29:44 2015 -0700

----------------------------------------------------------------------
 .../Core/js/src/org/apache/flex/core/SimpleCSSValuesImpl.js        | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d1e0bc3e/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleCSSValuesImpl.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleCSSValuesImpl.js b/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleCSSValuesImpl.js
index 8eca079..bcfed03 100644
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleCSSValuesImpl.js
+++ b/frameworks/projects/Core/js/src/org/apache/flex/core/SimpleCSSValuesImpl.js
@@ -344,6 +344,8 @@ org.apache.flex.core.SimpleCSSValuesImpl.prototype.applyStyles =
     if (skipStyles[p])
       continue;
     var value = styles[p];
+    if (value === undefined)
+      continue;
     if (typeof(value) == 'number') {
       if (colorStyles[p])
         value = '#' + value.toString(16);