Class EventDispatcher

Hierarchy

  • EventDispatcher

Constructors

Properties

Methods

Constructors

Properties

_msg: null | MessageEventData = null

Methods

  • 销毁事件对象

    Returns void

  • 触发全局事件

    Parameters

    • event: string

      事件名

    • args: any = null

      事件参数

    Returns void

  • 移除全局事件

    Parameters

    • event: string

      事件名

    Returns void

  • 注册全局事件

    Parameters

    • event: string

      事件名

    • listener: ListenerFunc

      处理事件的侦听器函数

    • object: any

      侦听函数绑定的作用域对象

    Returns void

Generated using TypeDoc