as returns null rather than undefined

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

Branch: refs/heads/develop
Commit: 256dcd71c4fce9168c5c07e88d3e72a11239d2ce
Parents: 6fef880
Author: Justin Mclean <jmcl...@apache.org>
Authored: Sat Jun 3 10:41:36 2017 +1000
Committer: Justin Mclean <jmcl...@apache.org>
Committed: Sat Jun 3 10:41:36 2017 +1000

----------------------------------------------------------------------
 .../Basic/src/main/flex/org/apache/flex/core/UIBase.as       | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/256dcd71/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 e242fd6..e524bc3 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
@@ -868,7 +868,7 @@ package org.apache.flex.core
             if (_view === null)
             {
                 var c:Class = ValuesManager.valuesImpl.getValue(this, 
"iBeadView") as Class;
-                if (c !== undefined)
+                if (c !== null)
                 {
                     _view = (new c()) as IBeadView;
                     addBead(_view);
@@ -1344,7 +1344,7 @@ package org.apache.flex.core
             if (getBeadByType(IBeadModel) === null)
             {
                 c = ValuesManager.valuesImpl.getValue(this, "iBeadModel") as 
Class;
-                if (c !== undefined)
+                if (c !== null)
                 {
                     var model:IBeadModel = new c as IBeadModel;
                     if (model)
@@ -1354,7 +1354,7 @@ package org.apache.flex.core
             if (_view === null && getBeadByType(IBeadView) === null)
             {
                 c = ValuesManager.valuesImpl.getValue(this, "iBeadView") as 
Class;
-                if (c !== undefined)
+                if (c !== null)
                 {
                     var view:IBeadView = new c as IBeadView;
                     if (view)
@@ -1364,7 +1364,7 @@ package org.apache.flex.core
             if (getBeadByType(IBeadController) === null)
             {
                 c = ValuesManager.valuesImpl.getValue(this, "iBeadController") 
as Class;
-                if (c !== undefined)
+                if (c !== null)
                 {
                     var controller:IBeadController = new c as IBeadController;
                     if (controller)

Reply via email to