Simplify by using native JavaScript instead of jQuery

Still use $.each for iterating over an Object because there is no
adequate function in ES5.

Change-Id: Idbec13c471e75a9cd5d67204d54bededdbd5582b
This commit is contained in:
Fomafix
2018-09-01 08:57:17 +02:00
committed by Krinkle
parent 1857627c2f
commit 971e4c742d
4 changed files with 14 additions and 22 deletions

View File

@@ -456,7 +456,7 @@
// Get the saved font using the fontSelector defined in mw.webfonts.setup
savedFont = this.$webfonts.getFont( language );
$.each( fonts, function ( key, font ) {
fonts.forEach( function ( font ) {
var $fontOption;
if ( font !== 'system' ) {