From e82fa5ee8279137ad64a7884b6c00d042dd9eb5c Mon Sep 17 00:00:00 2001 From: Tom Free <7283497+thfrei@users.noreply.github.com> Date: Sun, 17 Jul 2022 14:16:17 +0200 Subject: [PATCH] better comments for constructor --- src/public/app/widgets/type_widgets/canvas.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/public/app/widgets/type_widgets/canvas.js b/src/public/app/widgets/type_widgets/canvas.js index b67b4e2dd..d04bd7370 100644 --- a/src/public/app/widgets/type_widgets/canvas.js +++ b/src/public/app/widgets/type_widgets/canvas.js @@ -84,8 +84,8 @@ export default class ExcalidrawTypeWidget extends TypeWidget { super(); // constants - this.SCENE_VERSION_INITIAL = -1; - this.SCENE_VERSION_ERROR = -2; + this.SCENE_VERSION_INITIAL = -1; // -1 indicates, that it is fresh. excalidraw scene version is always >0 + this.SCENE_VERSION_ERROR = -2; // -2 indicates error // config this.DEBOUNCE_TIME_ONCHANGEHANDLER = 750; // ms @@ -102,6 +102,7 @@ export default class ExcalidrawTypeWidget extends TypeWidget { this.$widget; this.reactHandlers; // used to control react state + // binds this.createExcalidrawReactApp = this.createExcalidrawReactApp.bind(this); this.onChangeHandler = this.onChangeHandler.bind(this); this.isNewSceneVersion = this.isNewSceneVersion.bind(this);