Unverified Commit 5fd1248e authored by lauriii's avatar lauriii Committed by alexpott

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

(cherry picked from commit 6be4122d)
parent 147357e3
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment