Index: branches/wmf/1.18wmf1/extensions/WebFonts/resources/ext.webfonts.js |
— | — | @@ -278,6 +278,10 @@ |
279 | 279 | mw.webfonts.set( $(this).val() ); |
280 | 280 | } ); |
281 | 281 | for ( var scheme in config ) { |
| 282 | + if ( !Object.prototype.hasOwnProperty.call( config, scheme ) ) { |
| 283 | + continue; |
| 284 | + } |
| 285 | + |
282 | 286 | var $fontLink = $( '<input type="radio" name="font" />' ) |
283 | 287 | .attr( 'id', fontID( config[scheme] ) ) |
284 | 288 | .val( config[scheme] ); |