ProAct.Event Class
src/js/core/event.js:5
Constructs a ProAct.Event
. The event contains information of the update.
ProAct.Event
is part of the core module of ProAct.js.
Constructor
ProAct.Event
-
source
-
target
-
type
-
[...]
Parameters:
-
source
ProAct.EventIf there is an event that coused this event - it is the source. Can be null - no source.
-
target
ObjectThe thing that triggered this event.
-
type
ProAct.Event.TypesThe type of the event
-
[...]
Object optionalargs Arguments of the event, for example for value event, these are the old value and the new value.
Properties
array
Number
final
Array type events. Events for changes in {@link ProAct.Array}.
The args should consist of operation, index, old values, new values.
TODO Move it to the proact-arrays module.
value
Number
final
Value type events. Events for changing a value.
For properties the args of the event contain the ProAct Object, the old value of the property and the new value.