Minor phaser.d.ts the Timer callback methods have optional callbackContexts

This commit is contained in:
Clark Stevenson 2015-04-24 16:02:19 +01:00
parent b175389c72
commit d6b597286b

View file

@ -4560,15 +4560,15 @@ declare module Phaser {
paused: boolean; paused: boolean;
seconds: number; seconds: number;
add(delay: number, callback: Function, callbackContext: any, ...args: any[]): Phaser.TimerEvent; add(delay: number, callback: Function, callbackContext?: any, ...args: any[]): Phaser.TimerEvent;
clearPendingEvents(): void; clearPendingEvents(): void;
destroy(): void; destroy(): void;
loop(delay: number, callback: Function, callbackContext: any, ...args: any[]): Phaser.TimerEvent; loop(delay: number, callback: Function, callbackContext?: any, ...args: any[]): Phaser.TimerEvent;
order(): void; order(): void;
pause(): void; pause(): void;
remove(event: Phaser.TimerEvent): boolean; remove(event: Phaser.TimerEvent): boolean;
removeAll(): void; removeAll(): void;
repeat(delay: number, repeatCount: number, callback: Function, callbackContext: any, ...args: any[]): Phaser.TimerEvent; repeat(delay: number, repeatCount: number, callback: Function, callbackContext?: any, ...args: any[]): Phaser.TimerEvent;
resume(): void; resume(): void;
sortHandler(a: any, b: any): number; sortHandler(a: any, b: any): number;
start(startDelay?: number): void; start(startDelay?: number): void;