mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-11-15 03:23:45 +00:00
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:
parent
127cec0d8d
commit
ecfc6514d3
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue