You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/12/09 06:16:56 UTC
[09/31] git commit: [flex-asjs] [refs/heads/develop] - add beads when
addedtoparent
add beads when addedtoparent
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/a61b76cb
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/a61b76cb
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/a61b76cb
Branch: refs/heads/develop
Commit: a61b76cbab2630d5f57f4020593555ea0b255cb2
Parents: bdac9ea
Author: Alex Harui <ah...@apache.org>
Authored: Fri Nov 21 16:46:53 2014 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Dec 8 20:47:41 2014 -0800
----------------------------------------------------------------------
frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a61b76cb/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
index 23d7cc8..6c95b56 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
@@ -184,6 +184,13 @@ org.apache.flex.core.UIBase.prototype.get_parent = function() {
*/
org.apache.flex.core.UIBase.prototype.addedToParent = function() {
+ if (this.beads) {
+ var n = this.beads.length;
+ for (var i = 0; i < n; i++) {
+ this.addBead(this.beads[i]);
+ }
+ }
+
/**
* @type {Function}
*/