utils/emittermixin
@ckeditor/ckeditor5-utils/src/emittermixin
Filtering
Interfaces
-
Emitter
module:utils/emittermixin~Emitter
Emitter/listener interface.
-
EmitterMixinDelegateChain
module:utils/emittermixin~EmitterMixinDelegateChain
The return value of
delegate
.
Functions
-
_getEmitterId( emitter )
module:utils/emittermixin~_getEmitterId
protected
Returns emitter's unique id.
Parameters
emitter : Emitter
An emitter which id will be returned.
-
_getEmitterListenedTo( listeningEmitter, listenedToEmitterId ) → Emitter | null
module:utils/emittermixin~_getEmitterListenedTo
protected
Checks if
listeningEmitter
listens to an emitter with givenlistenedToEmitterId
and if so, returns that emitter. If not, returnsnull
. -
_setEmitterId( emitter, [ id ] )
module:utils/emittermixin~_setEmitterId
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.
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.