mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
better comments for constructor
This commit is contained in:
parent
3e7aa3d762
commit
e82fa5ee82
@ -84,8 +84,8 @@ export default class ExcalidrawTypeWidget extends TypeWidget {
|
|||||||
super();
|
super();
|
||||||
|
|
||||||
// constants
|
// constants
|
||||||
this.SCENE_VERSION_INITIAL = -1;
|
this.SCENE_VERSION_INITIAL = -1; // -1 indicates, that it is fresh. excalidraw scene version is always >0
|
||||||
this.SCENE_VERSION_ERROR = -2;
|
this.SCENE_VERSION_ERROR = -2; // -2 indicates error
|
||||||
|
|
||||||
// config
|
// config
|
||||||
this.DEBOUNCE_TIME_ONCHANGEHANDLER = 750; // ms
|
this.DEBOUNCE_TIME_ONCHANGEHANDLER = 750; // ms
|
||||||
@ -102,6 +102,7 @@ export default class ExcalidrawTypeWidget extends TypeWidget {
|
|||||||
this.$widget;
|
this.$widget;
|
||||||
this.reactHandlers; // used to control react state
|
this.reactHandlers; // used to control react state
|
||||||
|
|
||||||
|
// binds
|
||||||
this.createExcalidrawReactApp = this.createExcalidrawReactApp.bind(this);
|
this.createExcalidrawReactApp = this.createExcalidrawReactApp.bind(this);
|
||||||
this.onChangeHandler = this.onChangeHandler.bind(this);
|
this.onChangeHandler = this.onChangeHandler.bind(this);
|
||||||
this.isNewSceneVersion = this.isNewSceneVersion.bind(this);
|
this.isNewSceneVersion = this.isNewSceneVersion.bind(this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user