extra docs

pull/21833/head
Bruno Windels 2019-08-27 16:18:09 +02:00
parent f5bb872efa
commit e0ec827a64
1 changed files with 2 additions and 0 deletions

View File

@ -366,6 +366,8 @@ export class PartCreator {
constructor(room, client, autoCompleteCreator = null) {
this._room = room;
this._client = client;
// pre-create the creator as an object even without callback so it can already be passed
// to PillCandidatePart (e.g. while deserializing) and set later on
this._autoCompleteCreator = {create: autoCompleteCreator && autoCompleteCreator(this)};
}