Improved handling of children removal from empty DisplayObjectContainers
Calling removeChildren() on an already empty DisplayObjectContainer should not fail with out of range error, but do nothing (as the container is already empty) and return an empty array of removed elements for consistency.
1 parent 293d740 commit 5e1d69cf0f73a5a8da569be476c81c4afb05b6e7
@Yury Shevchenko Yury Shevchenko authored on 12 Jul 2014
Showing 1 changed file
View
src/pixi/display/DisplayObjectContainer.js