MobileArticleTarget: Fix silly indirection via a global variable

Change-Id: I71349313b493c18cebe30df0b1b03defe81bb80e
This commit is contained in:
Bartosz Dziewoński 2019-06-05 10:27:32 -04:00
parent c1b9ce84c8
commit f48b5bcc9a

View file

@ -504,7 +504,7 @@ ve.init.mw.MobileArticleTarget.prototype.setupToolbar = function ( surface ) {
if ( !this.$title ) {
this.$title = $( '<div>' ).addClass( 've-init-mw-mobileArticleTarget-title-container' ).append(
$( '<div>' ).addClass( 've-init-mw-mobileArticleTarget-title' ).text(
new mw.Title( ve.init.target.getPageName() ).getMainText()
new mw.Title( this.getPageName() ).getMainText()
)
);
}