diff options
author | hooroomoo <hooroomoo@3688872.no-reply.drupal.org> | 2021-10-12 19:17:13 +0000 |
---|---|---|
committer | larowlan <larowlan@395439.no-reply.drupal.org> | 2021-10-12 19:17:13 +0000 |
commit | 25c55e3c1ef7bdece4baf1e6d367181c30391373 (patch) | |
tree | 6fec364ad7c433e80f6d6d1113ee8d42ddf2d86c /core/modules/node/node.js | |
parent | aafc501db43219b54fe2e8b92348e2034333e384 (diff) | |
download | drupal-25c55e3c1ef7bdece4baf1e6d367181c30391373.tar.gz drupal-25c55e3c1ef7bdece4baf1e6d367181c30391373.zip |
Issue #3239132 by hooroomoo, larowlan, nod_, bnjmnm: Refactor (if feasible) uses of the jQuery trim function to use vanillaJS
Diffstat (limited to 'core/modules/node/node.js')
-rw-r--r-- | core/modules/node/node.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/node/node.js b/core/modules/node/node.js index ebca1208a7f..52e221e9acd 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(', '); } |