From 578eb46814e517feada7a58e8d7df21bf15f0bd9 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 15 Mar 2025 00:59:26 +0200 Subject: [PATCH] fix(build): observable breaking at runtime --- src/ui/mathview.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ui/mathview.ts b/src/ui/mathview.ts index 98cb875ad..ab36bea88 100644 --- a/src/ui/mathview.ts +++ b/src/ui/mathview.ts @@ -4,8 +4,8 @@ import { renderEquation } from '../utils'; import type { Locale } from 'ckeditor5/src/utils'; export default class MathView extends View { - public value: string; - public display: boolean; + public declare value: string; + public declare display: boolean; public previewUid: string; public previewClassName: Array; public katexRenderOptions: KatexOptions; @@ -39,9 +39,7 @@ export default class MathView extends View { this.previewClassName = previewClassName; this.set( 'value', '' ); - this.value = ''; this.set( 'display', false ); - this.display = false; this.on( 'change', () => { if ( this.isRendered ) {