|
|
|
[
Permlink
| « Hide
]
Matt Chotin - [07/18/08 01:17 PM ]
Consider for 3.2. 3.1 is locked.
attaching a bugfile to show the runtime error thrown.
To reproduce: - click on the 'Add child' button resetting this to be an mxml component issue (container issue, more specifically) rather than Compiler API issue.
In flex 2.0.1, when you add the same child into the container, the index out of bounds RTE is not thrown. That's why I set this as a regression. However, the behavior in 2.0.1 looks incorrect too. In 2.0.1, a different component gets added instead of just not doing anything.
This is a bug in UIComponent.addChild. It assumes that the child is not already a child.
override public function addChild(child:DisplayObject):DisplayObject { return addChildAt(child, numChildren); } To Corey, hopefully a nice respite from performance :)
confirmed in latest 3.0.x and trunk branch
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||