This commit is contained in:
Leslie Leigh
2019-04-08 14:36:03 +08:00
committed by Weiliang Wang
parent 3bb398a31f
commit 88c3d0e3c4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -8,7 +8,7 @@ type Constructor<T = {}> = new(...args: any[]) => T;
export type IEventTargetCallback = (...args: any[]) => void;
class Empty { protected constructor () {}; }
class Empty { protected constructor () {} }
export function EventTargetFactory<Base extends Constructor<{}>> (b?: Base) {
let base = b;