mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
fix(build): observable breaking at runtime
This commit is contained in:
@@ -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 ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user