From 88c3d0e3c4d5ca59b985f0a33e8f8b39f88b4376 Mon Sep 17 00:00:00 2001 From: Leslie Leigh Date: Mon, 8 Apr 2019 14:36:03 +0800 Subject: [PATCH] typo (#4159) --- cocos/animation/types.ts | 2 +- cocos/core/event/event-target-factory.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/animation/types.ts b/cocos/animation/types.ts index 60594f784a..d635c55a70 100644 --- a/cocos/animation/types.ts +++ b/cocos/animation/types.ts @@ -72,7 +72,7 @@ export class WrappedInfo { public direction = 1; public stopped = true; public iterations = 0; - public frameIndex: number = NaN; + public frameIndex: number = undefined as unknown as number; constructor (info?: WrappedInfo) { if (info) { diff --git a/cocos/core/event/event-target-factory.ts b/cocos/core/event/event-target-factory.ts index c089078e2a..4d087a6ff2 100644 --- a/cocos/core/event/event-target-factory.ts +++ b/cocos/core/event/event-target-factory.ts @@ -8,7 +8,7 @@ type Constructor = new(...args: any[]) => T; export type IEventTargetCallback = (...args: any[]) => void; -class Empty { protected constructor () {}; } +class Empty { protected constructor () {} } export function EventTargetFactory> (b?: Base) { let base = b;