flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [5/6] git commit: [flex-asjs] [refs/heads/develop] - sometimes the positioner isn't parented yet
Date Wed, 26 Aug 2015 06:16:41 GMT
sometimes the positioner isn't parented yet


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

Branch: refs/heads/develop
Commit: 0cbdb9ea4a2a0f58cacabf8ad910201033d6c227
Parents: bb9e859
Author: Alex Harui <aharui@apache.org>
Authored: Tue Aug 25 23:14:41 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Aug 25 23:14:41 2015 -0700

----------------------------------------------------------------------
 frameworks/projects/Core/js/src/org/apache/flex/core/UIBase.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0cbdb9ea/frameworks/projects/Core/js/src/org/apache/flex/core/UIBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/UIBase.js b/frameworks/projects/Core/js/src/org/apache/flex/core/UIBase.js
index ba1c21f..0c33d65 100644
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/UIBase.js
+++ b/frameworks/projects/Core/js/src/org/apache/flex/core/UIBase.js
@@ -375,7 +375,7 @@ Object.defineProperties(org.apache.flex.core.UIBase.prototype, {
         /** @this {org.apache.flex.core.UIBase} */
         get: function() {
             var p = this.positioner.parentNode;
-            var wrapper = p.flexjs_wrapper;
+            var wrapper = p ? p.flexjs_wrapper : null;
             return wrapper;
         }
     },


Mime
View raw message