Mixin: Events

Events

Provides event emitter functionality including the methods: on, off, once, emit, deferEmit.
Source:

Methods

(static) deferEmit(eventName, dataopt)

Queues an event to be fired. This has automatic de-bouncing so that any events of the same type that occur within 100 milliseconds of a previous one will all be wrapped into a single emit rather than emitting tons of events for lots of chained inserts etc. Only the data from the last de-bounced event will be emitted.
Parameters:
Name Type Attributes Description
eventName String The name of the event to emit.
data * <optional>
Optional data to emit with the event.
Source: