Commit 0363a59f authored by wjf's avatar wjf

l

parent 3835356b
# project ignores
node_modules
.idea
\ No newline at end of file
......@@ -397,7 +397,7 @@ export class DisplayObject extends EventDispatcher {
//移除所有监听
//如果有父级,从中移除自己
this.removeAllEventListener();
// super.destroy();
// super.destroy();//不适用继承的,里面的eventTypes置空很麻烦
if (this.parent) {
this.parent.removeChild(this);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment