Show:
Module: proact-core

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.Event

    If there is an event that coused this event - it is the source. Can be null - no source.

  • target Object

    The thing that triggered this event.

  • type ProAct.Event.Types

    The type of the event

  • [...] Object optional

    args Arguments of the event, for example for value event, these are the old value and the new value.

Item Index

Properties

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.

close

Number final

Close type events. Events for closing streams or destroying properties.

error

Number final

Error type events. Events for errors.

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.