utils/emittermixin
@ckeditor/ckeditor5-utils/src/emittermixin
module
Filtering
Interfaces
-
Emitter/listener interface.
-
The return value of
delegate
.
Functions
-
_getEmitterId( emitter )
protected
Returns emitter's unique id.
Parameters
emitter : Emitter
An emitter which id will be returned.
-
_getEmitterListenedTo( listeningEmitter, listenedToEmitterId ) → Emitter | null
protected
Checks if
listeningEmitter
listens to an emitter with givenlistenedToEmitterId
and if so, returns that emitter. If not, returnsnull
. -
_setEmitterId( emitter, [ id ] )
protected
Sets emitter's unique id.
Note:
_emitterId
can be set only once.Parameters
emitter : Emitter
An emitter for which id will be set.
[ id ] : String
Unique id to set. If not passed, random unique id will be set.