From 25c55e3c1ef7bdece4baf1e6d367181c30391373 Mon Sep 17 00:00:00 2001 From: hooroomoo Date: Tue, 12 Oct 2021 19:17:13 +0000 Subject: Issue #3239132 by hooroomoo, larowlan, nod_, bnjmnm: Refactor (if feasible) uses of the jQuery trim function to use vanillaJS --- core/modules/node/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modules/node/node.js') diff --git a/core/modules/node/node.js b/core/modules/node/node.js index ebca1208a7f0..52e221e9acde 100644 --- a/core/modules/node/node.js +++ b/core/modules/node/node.js @@ -39,7 +39,7 @@ if ($optionsContext.find('input').is(':checked')) { $optionsContext.find('input:checked').next('label').each(function () { - vals.push(Drupal.checkPlain($.trim($(this).text()))); + vals.push(Drupal.checkPlain($(this).text().trim())); }); return vals.join(', '); } -- cgit v1.2.3