VE: Remove unnecessary validation check

Change-Id: I7cc68eaead398ed97baf620142386f8e0bab4fb9
This commit is contained in:
Ed Sanders 2015-10-19 19:18:26 +01:00
parent 30a98dcbcd
commit 10b6dee5a2

View file

@ -122,9 +122,7 @@ ve.ui.MWSyntaxHighlightInspector.prototype.getSetupProcess = function ( data ) {
language = attrs.lang || '',
showLines = attrs.line !== undefined;
if ( ve.dm.MWSyntaxHighlightNode.static.isLanguageSupported( language ) ) {
this.language.input.setValue( language );
}
this.language.input.setValue( language );
this.language.input.on( 'change', this.onChangeHandler );
this.showLinesCheckbox.setSelected( showLines );