From e0ec827a64eacb70cb45dc4540f69f136f07fca5 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 27 Aug 2019 16:18:09 +0200 Subject: [PATCH] extra docs --- src/editor/parts.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/editor/parts.js b/src/editor/parts.js index f9b4243de4..bc420ecde1 100644 --- a/src/editor/parts.js +++ b/src/editor/parts.js @@ -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)}; }