Added missing statement to UIBase to set the view bead backing var. Moved 
dispatch children notice in PanelView to proper location.


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

Branch: refs/heads/master
Commit: 4dd82dbb0390bb26d399a2dfaaa9322e4b9d910a
Parents: 996daef
Author: Peter Ent <[email protected]>
Authored: Wed Sep 23 14:41:26 2015 -0400
Committer: Peter Ent <[email protected]>
Committed: Wed Sep 23 14:41:26 2015 -0400

----------------------------------------------------------------------
 frameworks/projects/Core/js/src/org/apache/flex/core/UIBase.js | 1 +
 frameworks/projects/HTML/js/src/org/apache/flex/html/Panel.js  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4dd82dbb/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 f00bb51..f79061d 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
@@ -348,6 +348,7 @@ org.apache.flex.core.UIBase.prototype.addBead = 
function(bead) {
     this.model_ = bead;
 
   if (org.apache.flex.utils.Language.is(bead, org.apache.flex.core.IBeadView)) 
{
+    this.view_ = bead;
     this.dispatchEvent(new org.apache.flex.events.Event('viewChanged'));
   }
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4dd82dbb/frameworks/projects/HTML/js/src/org/apache/flex/html/Panel.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/Panel.js 
b/frameworks/projects/HTML/js/src/org/apache/flex/html/Panel.js
index 6090a64..e05c0e5 100644
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/Panel.js
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/Panel.js
@@ -54,9 +54,9 @@ org.apache.flex.html.Panel.prototype.addElement = function(c) 
{
   }
   else {
     this.contentArea.appendChild(c.element);
-    this.dispatchEvent('childrenAdded');
   }
   c.addedToParent();
+  this.dispatchEvent('childrenAdded');
 };*/
 
 

Reply via email to