use children array instead of getChildAt
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/824b9640 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/824b9640 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/824b9640 Branch: refs/heads/develop Commit: 824b9640f3450f23218b142f15db24894c73da61 Parents: 8219743 Author: Alex Harui <[email protected]> Authored: Sun Oct 20 20:42:12 2013 -0700 Committer: Alex Harui <[email protected]> Committed: Sun Oct 20 20:42:12 2013 -0700 ---------------------------------------------------------------------- frameworks/js/FlexJS/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/824b9640/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 657a7b6..c9608f8 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js @@ -84,7 +84,7 @@ org.apache.flex.core.UIBase.prototype.addElementAt = function(c, index) { else { this.element.insertBefore(c.element, - this.getChildAt(index)); + children[index]); c.addedToParent(); } };
