Show:

Constructs a ProAct.ValueEvent. The value event contains information of a value property update.

Constructor

ProAct.ValueEvent

(
  • source
  • target
)

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. In most cases this should be instance of a ProAct.Property

Item Index

Methods

Methods

fromVal

() Object

A ValueEvent represents change of a property from an old value to a new value. This method returns the old value, that was changed.

Returns:

Object:

The old value.

toVal

() Object

A ValueEvent represents change of a property from an old value to a new value. This method returns the new value.

Returns:

Object:

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.

close

Number final

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

constructor

ProAct.ValueEvent final

Reference to the constructor of this object.

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.