Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Trigger<T>

Type parameters

  • T

Hierarchy

Implements

Index

Constructors

constructor

  • Parameters

    Returns Trigger

Properties

Private _handlers

_handlers: TriggerHandler<function>[]

chain

chain: Trigger<T>

Methods

Private _activateChain

  • _activateChain(): void
  • Returns void

Private _deactivateChain

  • _deactivateChain(): void
  • Returns void

Private _onChainFire

  • _onChainFire(e: T): void
  • Parameters

    • e: T

    Returns void

Private _remove

  • Parameters

    Returns void

Private _reset

  • _reset(): void
  • Returns void

destroy

  • destroy(): void

destroyed

  • destroyed(): boolean

fire

  • fire(param?: T): void
  • Parameters

    • Optional param: T

    Returns void

handle

  • handle(owner: any, handler?: function, name?: string): void
  • Parameters

    • owner: any
    • Optional handler: function
        • (e: T): boolean | void
        • Parameters

          • e: T

          Returns boolean | void

    • Optional name: string

    Returns void

handleInsert

  • handleInsert(index: number, owner: any, handler?: function, name?: string): void
  • Parameters

    • index: number
    • owner: any
    • Optional handler: function
        • (e: T): boolean | void
        • Parameters

          • e: T

          Returns boolean | void

    • Optional name: string

    Returns void

hasHandler

  • hasHandler(): boolean
  • Returns boolean

isHandled

  • isHandled(owner: any, handler?: function): boolean
  • Parameters

    • owner: any
    • Optional handler: function
        • (e: T): boolean | void
        • Parameters

          • e: T

          Returns boolean | void

    Returns boolean

remove

  • remove(owner: any, handler?: function): void
  • Parameters

    • owner: any
    • Optional handler: function
        • (e: T): boolean | void
        • Parameters

          • e: T

          Returns boolean | void

    Returns void

removeAll

  • removeAll(owner: any): void
  • Parameters

    • owner: any

    Returns void

removeAllByHandler

  • removeAllByHandler(handler: function): void
  • Parameters

    • handler: function
        • (e: T): boolean | void
        • Parameters

          • e: T

          Returns boolean | void

    Returns void

removeByName

  • removeByName(name: string): void
  • Parameters

    • name: string

    Returns void

Generated using TypeDoc