Class EventState
Constructors
constructor
-
new EventState(
mask: number,
skipNextObservers?: boolean,
target?: any,
currentTarget?: any,
): EventStateCreate a new EventState
Parameters
- mask: number
defines the mask associated with this state
- skipNextObservers: boolean = false
defines a flag which will instruct the observable to skip following observers when set to true
Optionaltarget: anydefines the original target of the state
OptionalcurrentTarget: anydefines the current target of the state
Returns EventState
- mask: number
Properties
Optionalcurrent Target
The current object in the bubbling phase
Optionallast Return Value
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
Get the mask value that were used to trigger the event corresponding to this EventState object
skip Next Observers
An Observer can set this property to true to prevent subsequent observers of being notified
Optionaltarget
The object that originally notified the event
Optionaluser Info
User defined information that will be sent to observers
Methods
initialize
-
initialize(
mask: number,
skipNextObservers?: boolean,
target?: any,
currentTarget?: any,
): EventStateInitialize the current event state
Parameters
- mask: number
defines the mask associated with this state
- skipNextObservers: boolean = false
defines a flag which will instruct the observable to skip following observers when set to true
Optionaltarget: anydefines the original target of the state
OptionalcurrentTarget: anydefines the current target of the state
Returns EventState
the current event state
- mask: number
A class serves as a medium between the observable and its observers