Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EventEntry

表示一个事件项。

internal
class
version

1.0.0

Hierarchy

  • EventEntry

Index

Constructors

Properties

Constructors

constructor

  • new EventEntry(type: string, listener: Function, scope: any, once: boolean): EventEntry
  • 初始化事件项的新实例。

    Parameters

    • type: string

      事件类型。

    • listener: Function

      侦听函数。

    • scope: any

      是否为仅回掉一次。

    • once: boolean

    Returns EventEntry

Properties

listener

listener: Function

获取事件的侦听函数。

readonly
member
returns

Function

once

once: boolean

获取一个布尔值,表示是否为仅回调一次的事件项。

readonly
member
returns

boolean

scope

scope: any

获取事件侦听函数的 this 对象。

readonly
member
returns

any

type

type: string

获取事件的字符串类型值。

readonly
member
returns

string

Generated using TypeDoc