Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConditionalChainTrigger<T>

Type parameters

  • T

Hierarchy

  • Trigger<T>
    • ConditionalChainTrigger

Implements

Index

Constructors

constructor

Properties

Private _handlers

_handlers: TriggerHandler<function>[]

chain

chain: Trigger<T>

filter

filter: function

Type declaration

    • (e: T): boolean
    • Parameters

      • e: T

      Returns boolean

filterOwner

filterOwner: any

Methods

Private _activateChain

  • _activateChain(): void

Private _deactivateChain

  • _deactivateChain(): void

Private _onChainFire

  • _onChainFire(e: T): void

Private _remove

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

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