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 2017/06/26 16:55:47 UTC
[12/50] [abbrv] git commit: [flex-asjs] [refs/heads/master] - Changed
check to avoid null cases (if possible)
Changed check to avoid null cases (if possible)
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/a9321c52
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/a9321c52
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/a9321c52
Branch: refs/heads/master
Commit: a9321c529854657014962cd686b7b64d019e52b5
Parents: 51d2ec7
Author: Harbs <ha...@in-tools.com>
Authored: Tue Jun 6 13:43:05 2017 +0300
Committer: Harbs <ha...@in-tools.com>
Committed: Tue Jun 6 13:43:05 2017 +0300
----------------------------------------------------------------------
.../projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a9321c52/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as b/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as
index b3d9ba6..0142205 100644
--- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as
+++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as
@@ -371,7 +371,7 @@ package org.apache.flex.core
var strpixels:String = positioner.style.width as String;
if (strpixels !== null && strpixels.indexOf('%') != -1)
pixels = NaN;
- else if (strpixels.length == 0)
+ else if (strpixels === "")
pixels = NaN;
else
pixels = parseFloat(strpixels);
@@ -465,7 +465,7 @@ package org.apache.flex.core
var strpixels:String = positioner.style.height as String;
if (strpixels !== null && strpixels.indexOf('%') != -1)
pixels = NaN;
- else if (strpixels.length == 0)
+ else if (strpixels === "")
pixels = NaN;
else
pixels = parseFloat(strpixels);