Remove check for existence of mw.hook

mw.hook was introduced with 2e970257 in MediaWiki core for REL 1.22.

Change-Id: Ib81ba150c4056be19ede2145308489d0b286aea0
This commit is contained in:
Fomafix 2016-01-29 12:32:14 +00:00 committed by [[mw:User:Fomafix]]
parent 127cec0d8d
commit ecfc6514d3

View file

@ -384,9 +384,7 @@
session.setUseSoftTabs( false );
session.setUseWrapMode( context.lineWrappingActive );
if ( mw.hook ) {
mw.hook( 'codeEditor.configure' ).fire( session );
}
mw.hook( 'codeEditor.configure' ).fire( session );
ace.config.loadModule( 'ace/mode/' + lang, function () {
AceLangMode = require( 'ace/mode/' + lang ).Mode;