Methods
add
- add(name: string, func: Function): void
Parameters
name: string
func: Function
Returns void
emit
- emit(name: string, ...args: any[]): void
Parameters
name: string
Rest ...args: any[]
Returns void
is
- is(name: string, func: Function): boolean
Parameters
name: string
func: Function
Returns boolean
remove
- remove(name: string, func: Function): void
Parameters
name: string
func: Function
Returns void
事件系统