little confusion on null / undefined in code reverting to type conversion comparison for now
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/516e04f8 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/516e04f8 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/516e04f8 Branch: refs/heads/develop Commit: 516e04f8936ef2df164b2b61342a65945bb65483 Parents: 4cf2969 Author: Justin Mclean <jmcl...@apache.org> Authored: Fri May 26 09:47:02 2017 +1000 Committer: Justin Mclean <jmcl...@apache.org> Committed: Fri May 26 09:47:02 2017 +1000 ---------------------------------------------------------------------- .../src/main/flex/org/apache/flex/core/SimpleCSSValuesImpl.as | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/516e04f8/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 70ff04d..6d4adec 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 @@ -246,7 +246,7 @@ package org.apache.flex.core { finalName = fixNames(declarationName, mq); o = values[finalName]; - if (o === null) + if (o == null) values[finalName] = valuesObject; else { @@ -446,7 +446,7 @@ package org.apache.flex.core } } - if (inheritingStyles[valueName] !== null && + if (inheritingStyles[valueName] != null && thisObject is IChild) { var parentObject:Object = IChild(thisObject).parent;