fixed removeAllChildren order.

This commit is contained in:
Nan Wang
2015-12-30 22:25:53 +08:00
parent 5a2800ccf0
commit 67923b2f39
+1 -1
View File
@@ -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) {