You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cd...@apache.org on 2016/04/18 15:26:41 UTC
[18/50] git commit: [flex-asjs] [refs/heads/feature/maven-migration]
- Application was not adding its own beads to its strand.
Application was not adding its own beads to its strand.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/64c699d3
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/64c699d3
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/64c699d3
Branch: refs/heads/feature/maven-migration
Commit: 64c699d376812a9a42a6450d69032886623385e5
Parents: fd130d7
Author: Peter Ent <pe...@apache.org>
Authored: Thu Apr 7 14:33:29 2016 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Thu Apr 7 14:33:29 2016 -0400
----------------------------------------------------------------------
.../Core/src/main/flex/org/apache/flex/core/Application.as | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64c699d3/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as
index ac80b8c..7b00170 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as
@@ -578,8 +578,11 @@ package org.apache.flex.core
dispatchEvent('initialize');
- if (model is IBead) addBead(model as IBead);
- if (controller is IBead) addBead(controller as IBead);
+ for (var index:int in beads) {
+ addBead(beads[index]);
+ }
+
+ dispatchEvent(new org.apache.flex.events.Event("beadsAdded"));
initialView.applicationModel = model;
addElement(initialView);