getSelectedItem() -> findSelectedItem()

Change-Id: I6ddf1ab488774f22fd566846c38483dcaf35ab27
This commit is contained in:
Ed Sanders 2018-01-17 13:49:06 +00:00
parent 363b8cda99
commit 271a149b5f
2 changed files with 2 additions and 2 deletions

View File

@ -254,7 +254,7 @@ ve.ui.MWLatexDialog.prototype.updateMwData = function ( mwData ) {
ve.ui.MWLatexDialog.super.prototype.updateMwData.call( this, mwData );
// Get data from dialog
display = this.displaySelect.getSelectedItem().getData();
display = this.displaySelect.findSelectedItem().getData();
id = this.idInput.getValue();
// Update attributes

View File

@ -116,7 +116,7 @@ ve.ui.MWLatexInspector.prototype.updateMwData = function ( mwData ) {
// Parent method
ve.ui.MWLatexInspector.super.prototype.updateMwData.call( this, mwData );
display = this.displaySelect.getSelectedItem().getData();
display = this.displaySelect.findSelectedItem().getData();
id = this.idInput.getValue();
mwData.attrs.display = display !== 'default' ? display : undefined;