mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-02 13:02:00 +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';
|
import type { Locale } from 'ckeditor5/src/utils';
|
||||||
|
|
||||||
export default class MathView extends View {
|
export default class MathView extends View {
|
||||||
public value: string;
|
public declare value: string;
|
||||||
public display: boolean;
|
public declare display: boolean;
|
||||||
public previewUid: string;
|
public previewUid: string;
|
||||||
public previewClassName: Array<string>;
|
public previewClassName: Array<string>;
|
||||||
public katexRenderOptions: KatexOptions;
|
public katexRenderOptions: KatexOptions;
|
||||||
@ -39,9 +39,7 @@ export default class MathView extends View {
|
|||||||
this.previewClassName = previewClassName;
|
this.previewClassName = previewClassName;
|
||||||
|
|
||||||
this.set( 'value', '' );
|
this.set( 'value', '' );
|
||||||
this.value = '';
|
|
||||||
this.set( 'display', false );
|
this.set( 'display', false );
|
||||||
this.display = false;
|
|
||||||
|
|
||||||
this.on( 'change', () => {
|
this.on( 'change', () => {
|
||||||
if ( this.isRendered ) {
|
if ( this.isRendered ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user