mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 16:38:12 +08:00
Tidy up the full frontend codebase and use optional chaining where possible (#620)
* Tidy up the full frontend codebase and use optional chaining where possible * Code review changes
This commit is contained in:
@@ -318,11 +318,8 @@ export default defineComponent({
|
||||
this.inputManager = createInputManager(this.editor, this.$el.parentElement, this.dialog, this.documents, this.fullscreen);
|
||||
},
|
||||
beforeUnmount() {
|
||||
const { inputManager } = this;
|
||||
if (inputManager) inputManager.removeListeners();
|
||||
|
||||
const { editor } = this;
|
||||
editor.instance.free();
|
||||
this.inputManager?.removeListeners();
|
||||
this.editor.instance.free();
|
||||
},
|
||||
components: {
|
||||
MainWindow,
|
||||
|
||||
Reference in New Issue
Block a user