Repository: flex-asjs
Updated Branches:
  refs/heads/develop 64e9f0c08 -> 90886a1dc


Add a parent to mock layout parent as there's a RTE otherwise in
EasyAccordionBead


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

Branch: refs/heads/develop
Commit: 8648c6faf4819be6469c03ed4e8d516be7ecd75d
Parents: 814b90d
Author: DESKTOP-RH4S838\Yishay <yishayj...@hotmail.com>
Authored: Tue Sep 26 10:46:15 2017 +0300
Committer: DESKTOP-RH4S838\Yishay <yishayj...@hotmail.com>
Committed: Tue Sep 26 10:46:15 2017 +0300

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/utils/MockLayoutParent.as  | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8648c6fa/frameworks/projects/Effects/src/main/flex/org/apache/flex/utils/MockLayoutParent.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/Effects/src/main/flex/org/apache/flex/utils/MockLayoutParent.as
 
b/frameworks/projects/Effects/src/main/flex/org/apache/flex/utils/MockLayoutParent.as
index a07a1d4..562ba1e 100644
--- 
a/frameworks/projects/Effects/src/main/flex/org/apache/flex/utils/MockLayoutParent.as
+++ 
b/frameworks/projects/Effects/src/main/flex/org/apache/flex/utils/MockLayoutParent.as
@@ -43,6 +43,7 @@ package org.apache.flex.utils
        {
                private var _layoutHost:ILayoutHost;
                private var _source:ILayoutParent;
+               private var _parent:IParent;
                public function MockLayoutParent(source:ILayoutParent)
                {
                        _layoutHost = new 
MockLayoutHost(source.getLayoutHost());
@@ -61,8 +62,11 @@ package org.apache.flex.utils
 
                public function get parent():IParent
                {
-                       // TODO Auto Generated method stub
-                       return null;
+                       if (!_parent)
+                       {
+                               _parent = new MockParent();
+                       }
+                       return _parent;
                }
 
 

Reply via email to