+/* eslint-disable no-restricted-properties */
/*!
* Experimental advanced wikitext parser-emitter.
* See: https://www.mediawiki.org/wiki/Extension:UploadWizard/MessageParser for docs
getAst: function ( key ) {
var wikiText;
- if ( !this.astCache.hasOwnProperty( key ) ) {
+ if ( !Object.prototype.hasOwnProperty.call( this.astCache, key ) ) {
wikiText = this.settings.messages.get( key );
if ( typeof wikiText !== 'string' ) {
wikiText = '⧼' + key + '⧽';
return oldParser.apply( this );
}
- if ( !this.map.hasOwnProperty( this.format ) ) {
+ if ( !Object.prototype.hasOwnProperty.call( this.map, this.format ) ) {
this.map[ this.format ] = mw.jqueryMsg.getMessageFunction( {
messages: this.map,
// For format 'escaped', escaping part is handled by mediawiki.js