emitter 支持 context
This commit is contained in:
7
source/bin/framework.d.ts
vendored
7
source/bin/framework.d.ts
vendored
@@ -1044,10 +1044,15 @@ declare class DrawUtils {
|
||||
declare class Emitter<T> {
|
||||
private _messageTable;
|
||||
constructor();
|
||||
addObserver(eventType: T, handler: Function): void;
|
||||
addObserver(eventType: T, handler: Function, context: any): void;
|
||||
removeObserver(eventType: T, handler: Function): void;
|
||||
emit(eventType: T, data?: any): void;
|
||||
}
|
||||
declare class FuncPack {
|
||||
func: Function;
|
||||
context: any;
|
||||
constructor(func: Function, context: any);
|
||||
}
|
||||
declare class GlobalManager {
|
||||
static globalManagers: GlobalManager[];
|
||||
private _enabled;
|
||||
|
||||
Reference in New Issue
Block a user