Options
All
  • Public
  • Public/Protected
  • All
Menu

A class serves as a medium between the observable and its observers

Hierarchy

  • EventState

Index

Constructors

  • new EventState(mask: number, skipNextObservers?: boolean, target?: any, currentTarget?: any): EventState
  • Create a new EventState

    Parameters

    • mask: number

      defines the mask associated with this state

    • Optional skipNextObservers: boolean

      defines a flag which will instruct the observable to skip following observers when set to true

    • Optional target: any

      defines the original target of the state

    • Optional currentTarget: any

      defines the current target of the state

    Returns EventState

Properties

currentTarget?: any

The current object in the bubbling phase

lastReturnValue?: any

This will be populated with the return value of the last function that was executed. If it is the first function in the callback chain it will be the event data.

mask: number

Get the mask value that were used to trigger the event corresponding to this EventState object

skipNextObservers: boolean

An Observer can set this property to true to prevent subsequent observers of being notified

target?: any

The object that originally notified the event

userInfo?: any

User defined information that will be sent to observers

Methods

  • initialize(mask: number, skipNextObservers?: boolean, target?: any, currentTarget?: any): EventState
  • Initialize the current event state

    Parameters

    • mask: number

      defines the mask associated with this state

    • Optional skipNextObservers: boolean

      defines a flag which will instruct the observable to skip following observers when set to true

    • Optional target: any

      defines the original target of the state

    • Optional currentTarget: any

      defines the current target of the state

    Returns EventState

    the current event state

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme