Fix linting errors

This commit is contained in:
Sauli Anto
2019-09-28 13:01:08 +03:00
parent 53c4c72c10
commit 566c9a40cb
5 changed files with 44 additions and 32 deletions

View File

@@ -62,12 +62,12 @@ export default class MathUI extends Plugin {
const mathConfig = {
...defaultConfig,
...this.editor.config.get( 'math' )
}
};
const formView = new MainFormView( editor.locale, mathConfig.engine );
formView.mathInputView.bind( 'value' ).to( mathCommand, 'value' );
formView.displayButtonView.bind( 'displayIsOn' ).to( mathCommand, 'display');
formView.displayButtonView.bind( 'displayIsOn' ).to( mathCommand, 'display' );
// Listen to submit button click
this.listenTo( formView, 'submit', () => {
@@ -125,7 +125,7 @@ export default class MathUI extends Plugin {
// Remove form first because it's on top of the stack.
this._removeFormView();
}
_closeFormView() {
const mathCommand = this.editor.commands.get( 'math' );
if ( mathCommand.value !== undefined ) {