Closed bradwerth closed 6 years ago
When Object._destroy() iterates the _childList and calls destroy() on each, it triggers a call to removeChild() which will modify the _childList and cause iteration problems. This change avoids that by cloning the _childList before iterating it.
When Object._destroy() iterates the _childList and calls destroy() on each, it triggers a call to removeChild() which will modify the _childList and cause iteration problems. This change avoids that by cloning the _childList before iterating it.