mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-12 09:10:32 +00:00
Merge "Get rid of one nesting level in highlighting code"
This commit is contained in:
commit
8ae3b13d1a
|
@ -45,9 +45,10 @@
|
|||
textNode = textNode.firstChild;
|
||||
}
|
||||
|
||||
if ( textNode.nodeType === Node.TEXT_NODE &&
|
||||
textNode.data.trim() !== ''
|
||||
) {
|
||||
if ( textNode.nodeType !== Node.TEXT_NODE || textNode.data.trim() === '' ) {
|
||||
return;
|
||||
}
|
||||
|
||||
accessibilityLabel = mw.msg( 'cite_references_link_accessibility_back_label' );
|
||||
upArrow = textNode.data.trim();
|
||||
// The text node typically contains "↑ ", and we need to keep the space.
|
||||
|
@ -67,7 +68,6 @@
|
|||
$upArrowLink
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$upArrowLink.attr( 'href', $backlink.attr( 'href' ) );
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue