Open nicoulaj opened 13 years ago
Originally filed by zeljko.kunica on 2010-07-20T19:17:38
What steps will reproduce the problem?
while (m_viewArea.getChildren().length > 0) { m_viewArea.removeChild(m_viewArea.selectedChild as DisplayObject); }
What is the expected output? What do you see instead? After all tabs are closed an error occures (index out of bounds...)
There is a simple solution:
if (this.selectedIndex < 0) { return; }
Originally filed by zeljko.kunica on 2010-07-20T19:17:38
What steps will reproduce the problem?
while (m_viewArea.getChildren().length > 0) { m_viewArea.removeChild(m_viewArea.selectedChild as DisplayObject); }
What is the expected output? What do you see instead? After all tabs are closed an error occures (index out of bounds...)
There is a simple solution:
if (this.selectedIndex < 0) { return; }