Apply webfonts to the IME selector too

It get added to DOM after DOM is ready, and does not inherit styles
(by design)

Change-Id: I45a982b5c1c2a39718f38e77a33b79f89e460474
This commit is contained in:
Santhosh Thottingal
2013-07-05 17:45:22 +05:30
committed by Nikerabbit
parent 2fdf4bffb3
commit e4cefe06fd
2 changed files with 4 additions and 1 deletions

View File

@@ -52,7 +52,7 @@
mw.webfonts.setup = function () {
// Initialize webfonts
$( 'body' ).webfonts( {
$.fn.webfonts.defaults = $.extend( $.fn.webfonts.defaults, {
fontSelector: function ( repository, language ) {
var font;
@@ -78,6 +78,7 @@
return $.fn.webfonts.defaults.exclude;
}() )
} );
$( 'body' ).webfonts();
};
$( document ).ready( function () {