Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EVListener

Hierarchy

  • EVListener

Index

Constructors

Properties

Methods

Constructors

constructor

  • new EVListener(__namedParameters: object): EVListener
  • Parameters

    • __namedParameters: object
      • context: EV<EVEventMap>
      • handler: Function
      • once: boolean
      • remover: function
      • tag: undefined | string | number | Object | Symbol
      • type: string

    Returns EVListener

Properties

Private _remover

_remover: EVStackRemover

context

context: EV

handler

handler: Function

once

once: boolean

Optional tag

type

type: string | null | undefined

Methods

match

  • match(type?: string | null, handler?: Function, tag?: EVListenerTag): boolean
  • Check match condition by type or handler or tag.

    Parameters

    • Optional type: string | null
    • Optional handler: Function
    • Optional tag: EVListenerTag

    Returns boolean

remove

  • remove(): void
  • Remove this instance from parent context.

    Returns void

trigger

  • trigger(params?: any): void
  • Trigger this listener.

    Parameters

    • Optional params: any

    Returns void

Generated using TypeDoc