From 7b2a09330a585ef60f7bbc1f46eba1a59701e185 Mon Sep 17 00:00:00 2001 From: "jiaxin.lai" Date: Tue, 21 May 2019 15:17:09 +0800 Subject: [PATCH] remove this.node.on in animationComponent on func (#4464) --- cocos/components/animation-component.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/cocos/components/animation-component.ts b/cocos/components/animation-component.ts index c4aecac6ea..c055eef7d4 100644 --- a/cocos/components/animation-component.ts +++ b/cocos/components/animation-component.ts @@ -366,7 +366,6 @@ export class AnimationComponent extends Component implements IEventTarget { this._nameToState[stateName]!._lastframeEventOn = true; } } - this.node.on(type, callback, target); return ret; }