Skip to content
Snippets Groups Projects
Commit 6be4122d authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #2983377 follow-up by ApacheEx: JS codestyle: implicit-arrow-linebreak

parent d2e0ae49
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -1034,13 +1034,12 @@
Drupal.theme.ajaxWrapperNewContent = ($newContent, ajax, response) => (
(response.effect || ajax.effect) !== 'none' &&
$newContent.filter(
i =>
!(
// We can not consider HTML comments or whitespace text as separate
// roots, since they do not cause visual regression with effect.
$newContent[i].nodeName === '#comment' ||
($newContent[i].nodeName === '#text' && /^(\s|\n|\r)*$/.test($newContent[i].textContent))
),
i => !(
// We can not consider HTML comments or whitespace text as separate
// roots, since they do not cause visual regression with effect.
$newContent[i].nodeName === '#comment' ||
($newContent[i].nodeName === '#text' && /^(\s|\n|\r)*$/.test($newContent[i].textContent))
),
).length > 1
? Drupal.theme('ajaxWrapperMultipleRootElements', $newContent)
: $newContent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment