From b50ff9275d8bf909326b8d64e9be4e6f37beb639 Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Sat, 10 Jul 2021 00:29:55 +0200 Subject: [PATCH] Fix jquery deprecation Applying PR#52 (https://github.com/wikimedia/jquery.webfonts/pull/52) https://api.jquery.com/jQuery.trim/ Bug: T280944 Change-Id: I7cf706b905a27079a06737b252805e199939d8df --- lib/jquery.webfonts/src/jquery.webfonts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jquery.webfonts/src/jquery.webfonts.js b/lib/jquery.webfonts/src/jquery.webfonts.js index db4ae6bf..6e5d7d90 100644 --- a/lib/jquery.webfonts/src/jquery.webfonts.js +++ b/lib/jquery.webfonts/src/jquery.webfonts.js @@ -225,7 +225,7 @@ } else { fontFamily = fontFamilyStyle.split( ',' )[0]; // Remove the ' and " characters if any. - fontFamily = $.trim( fontFamily.replace( /["']/g, '' ) ); + fontFamily = fontFamily.replace( /["']/g, '' ).trim(); addToFontQueue( fontFamily ); } }