Class EventState
Hierarchy
- EventState
Index
Constructors
Properties
Methods
Constructors
constructor
-
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
Optional current TargetSearch playground for currentTarget
The current object in the bubbling phase
Optional last Return ValueSearch playground for lastReturnValue
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.
maskSearch playground for mask
Get the mask value that were used to trigger the event corresponding to this EventState object
skip Next ObserversSearch playground for skipNextObservers
An Observer can set this property to true to prevent subsequent observers of being notified
Optional targetSearch playground for target
The object that originally notified the event
Optional user InfoSearch playground for userInfo
User defined information that will be sent to observers
Methods
initalizeSearch playground for initalize
-
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
-
A class serves as a medium between the observable and its observers