mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-31 11:49:01 +08:00
fix(build): observable breaking at runtime
This commit is contained in:
parent
d6dbadb89e
commit
578eb46814
@ -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<string>;
|
||||
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 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user