Working on my StablexUI application, I'm at a point where I generate a popup (<Floating>), and inside I have a <TabStack> with 2 empty <TabPage>'s for testing. When I call free on the popup, down the free() call stack for all children widgets, it throws an error when it tried to remove a TabPage's title:
[TabStack.hx - starting with line 213]
override public function removeChildAt(idx:Int) : DisplayObject {
var child : DisplayObject = super.removeChildAt(idx);
if( Std.is(child, TabPage) ){
child.removeEventListener(MouseEvent.CLICK, this._onChange);
this.tabBar.removeChild(cast(child, TabPage).title);
}
return child;
}//function removeChildAt()
Underlined and bolded line throws the error, telling me that the title object isn't a child of the removeChild caller (tabBar).
Is this an error, or am I possibly doing something wrong? I'm not sure what info to provide in this situation, so if you need any more, just yell! :)
P.