You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_detachChild: function (child, doCleanup) {
// IMPORTANT:
// - 1st do onExit
// - 2nd cleanup
//if (this._running) {
// child.onExitTransitionDidStart();
// child.onExit();
//}
// If you don't do cleanup, the child's actions will not get removed and the
if (doCleanup)
child.cleanup();
child.parent = null;
cc.js.array.remove(this._children, child);
this.emit(CHILD_REMOVED, child);
},
以前的
child.parent=null
只是一个单纯的属性赋值,现在却变成了一个方法调用。@pandamicro 这个有问题。
The text was updated successfully, but these errors were encountered: