Repository: flex-asjs Updated Branches: refs/heads/refactor-sprite 8b4b96ab5 -> 3f1df179c
Fixed removeChild Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/3f1df179 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/3f1df179 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/3f1df179 Branch: refs/heads/refactor-sprite Commit: 3f1df179c1c524798fd7208f21d0d8a64e0229bd Parents: 8b4b96a Author: Harbs <ha...@in-tools.com> Authored: Thu Oct 13 13:38:17 2016 +0300 Committer: Harbs <ha...@in-tools.com> Committed: Thu Oct 13 13:38:17 2016 +0300 ---------------------------------------------------------------------- frameworks/projects/XML/src/main/flex/XMLList.as | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3f1df179/frameworks/projects/XML/src/main/flex/XMLList.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/XML/src/main/flex/XMLList.as b/frameworks/projects/XML/src/main/flex/XMLList.as index 3136974..dd5b662 100644 --- a/frameworks/projects/XML/src/main/flex/XMLList.as +++ b/frameworks/projects/XML/src/main/flex/XMLList.as @@ -621,9 +621,18 @@ package var len:int; if(child is String) { - child = this.child(child); + var propNum:Number = parseInt(child,10); + if(propNum.toString() == child) + { + removeChildAt(propNum); + } + else if (isSingle()) + { + _xmlArray[0].removeChild(child); + } + return; } - + if(child is XMLList) { len = child.length();