Mixin for objects that have an Emitter instance. Exposes key Emitter methods,
and calls through to this.emitter.
This is just for convenience and consistency for objects that have an Emitter.
- Source:
Methods
-
<static> once()
-
Calls through to Emitter#once
- Source:
-
emit()
-
Calls through to Emitter#emit
- Source:
-
off()
-
Calls through to Emitter#off
- Source:
-
offAny()
-
Calls through to Emitter#offAny
- Source:
-
on()
-
Calls through to Emitter#on
- Source:
-
onAny()
-
Calls through to Emitter#onAny
- Source:
-
setEmitter(emitter) → {undefined}
-
Sets an emitter instance on 'this' and optionally binds events from
Parameters:
Name Type Description emitter
Object | Emitter Emitter instance or options - Source:
Returns:
- Type
- undefined