diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWMobileSaveDialog.js b/modules/ve-mw/ui/dialogs/ve.ui.MWMobileSaveDialog.js index e2aa48136d..b7a6181381 100644 --- a/modules/ve-mw/ui/dialogs/ve.ui.MWMobileSaveDialog.js +++ b/modules/ve-mw/ui/dialogs/ve.ui.MWMobileSaveDialog.js @@ -35,6 +35,8 @@ OO.inheritClass( ve.ui.MWMobileSaveDialog, ve.ui.MWSaveDialog ); * @inheritdoc */ ve.ui.MWMobileSaveDialog.prototype.initialize = function () { + var dialog = this; + // Parent method ve.ui.MWMobileSaveDialog.super.prototype.initialize.call( this ); @@ -45,7 +47,7 @@ ve.ui.MWMobileSaveDialog.prototype.initialize = function () { var licenseMsg = req( 'mobile.startup' ).license(); if ( licenseMsg ) { // eslint-disable-next-line no-jquery/no-html - this.$license.html( licenseMsg ); + dialog.$license.html( licenseMsg ); } } ); }; diff --git a/modules/ve-mw/ui/pages/ve.ui.MWSettingsPage.js b/modules/ve-mw/ui/pages/ve.ui.MWSettingsPage.js index 51ba82275c..363a40f11c 100644 --- a/modules/ve-mw/ui/pages/ve.ui.MWSettingsPage.js +++ b/modules/ve-mw/ui/pages/ve.ui.MWSettingsPage.js @@ -409,7 +409,7 @@ ve.ui.MWSettingsPage.prototype.teardown = function ( data ) { isSelected = metaItemCheckbox.fieldLayout.getField().isSelected(); if ( currentItem && !isSelected ) { - this.fragment.removeMeta( currentItem ); + settingsPage.fragment.removeMeta( currentItem ); } else if ( !currentItem && isSelected ) { settingsPage.fragment.insertMeta( { type: metaItemCheckbox.metaName } ); }