mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
fixed removeAllChildren order.
This commit is contained in:
@@ -1063,7 +1063,7 @@ var BaseNode = cc.Class(/** @lends cc.Node# */{
|
||||
var children = this._children;
|
||||
if (cleanup === undefined)
|
||||
cleanup = true;
|
||||
for (var i = 0; i < children.length; i++) {
|
||||
for (var i = children.length; i >= 0; i--) {
|
||||
var node = children[i];
|
||||
if (node) {
|
||||
//if (this._running) {
|
||||
|
||||
Reference in New Issue
Block a user