From 11bd48a1b53bcc257ec6c752a9d022731a61216b Mon Sep 17 00:00:00 2001 From: Tom <7283497+thfrei@users.noreply.github.com> Date: Tue, 10 May 2022 13:28:14 +0200 Subject: [PATCH] rename ExcalidrawReactApp() to createExcalidrawReactApp() --- src/public/app/widgets/type_widgets/canvas_note.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/public/app/widgets/type_widgets/canvas_note.js b/src/public/app/widgets/type_widgets/canvas_note.js index 1d6de953e..b51259aff 100644 --- a/src/public/app/widgets/type_widgets/canvas_note.js +++ b/src/public/app/widgets/type_widgets/canvas_note.js @@ -78,7 +78,7 @@ export default class ExcalidrawTypeWidget extends TypeWidget { this.$widget; this.reactHandlers; // used to control react state - this.ExcalidrawReactApp = this.ExcalidrawReactApp.bind(this); + this.createExcalidrawReactApp = this.createExcalidrawReactApp.bind(this); this.onChangeHandler = this.onChangeHandler.bind(this); this.isNewSceneVersion = this.isNewSceneVersion.bind(this); } @@ -109,7 +109,7 @@ export default class ExcalidrawTypeWidget extends TypeWidget { const ReactDOM = window.ReactDOM; ReactDOM.unmountComponentAtNode(this.renderElement); - ReactDOM.render(React.createElement(this.ExcalidrawReactApp), this.renderElement); + ReactDOM.render(React.createElement(this.createExcalidrawReactApp), this.renderElement); }) return this.$widget; @@ -303,7 +303,7 @@ export default class ExcalidrawTypeWidget extends TypeWidget { } } - ExcalidrawReactApp() { + createExcalidrawReactApp() { const React = window.React; const Excalidraw = window.Excalidraw;