Update jquery.webfonts from upstream
Change-Id: Ic3baa18b01a972f08e51e84217e82d0939e674c0
This commit is contained in:
@@ -100,6 +100,16 @@
|
|||||||
$element.css( 'font-family', fontStack.join() );
|
$element.css( 'font-family', fontStack.join() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( !fontFamily || fontFamily === this.originalFontFamily ) {
|
||||||
|
// We are resetting the font to original font.
|
||||||
|
// Do not explicitly set fontFamily for child nodes. Just remove
|
||||||
|
// the previous setting.
|
||||||
|
$element.find( 'textarea, input, button' )
|
||||||
|
.not( this.options.exclude )
|
||||||
|
.css( 'font-family', '' );
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Set the font of this element's children if they are not excluded.
|
// Set the font of this element's children if they are not excluded.
|
||||||
// font-family of <input>, <textarea> and <button> must be changed explicitly.
|
// font-family of <input>, <textarea> and <button> must be changed explicitly.
|
||||||
$element.find( 'textarea, input, button' )
|
$element.find( 'textarea, input, button' )
|
||||||
|
|||||||
Reference in New Issue
Block a user