refactoring

This commit is contained in:
Philipp Kühn
2021-05-04 11:03:11 +02:00
parent a96e0c2816
commit 0e1d6d41fe
6 changed files with 18 additions and 22 deletions

View File

@@ -1,11 +1,10 @@
import Vue, { PropType, Component } from 'vue'
import { Editor } from './Editor'
interface EditorContentInterface extends Vue {
editor: Editor
export interface EditorContentInterface extends Vue {
editor: Editor,
}
/** @this Component */
export const EditorContent: Component = {
name: 'EditorContent',
@@ -46,8 +45,7 @@ export const EditorContent: Component = {
return createElement('div')
},
beforeDestroy() {
// @ts-ignore
beforeDestroy(this: EditorContentInterface) {
const { editor } = this
if (!editor.isDestroyed) {