mixins/signalable

Descripción

Make an object capable of handling a signal. Or many signals.

Detalles

Miembros


autoLoadSignals :boolean

Descripción

When true, the class will load the signals hash and create the signal definitions during construction

Detalles
boolean

signals :hash|function

Descripción

A hash of signals to create automatically. Each definition consists of a name for the signal as the key
and then a hash of options (nullable) for each signal

Detalles
hash | function

Métodos


refreshSignals()

Descripción

When you make a change to the signals hash after loading, then you can make it reload

Detalles

<private> _loadSignals()

Descripción

Interprets the signals hash and instantiates it

Detalles

<private> _addSignal( name, options )

Descripción

Creates a single signal

Parámetros
Nombre Tipo Descripción
name string

The name of the signal

options module:mixins/signalable~SignalOptions

The options the signal expects

Detalles

<private> _addSignals( signals )

Descripción

Add a signal to an object. If any members of the hash already exist in this.signals, they will be overwritten.

Parámetros
Nombre Tipo Descripción
signals module:mixins/signalable.SignalOptions
Detalles

<private> destroy()

Descripción

Clean up

Detalles