mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Minor logic cleanup
This didn't mean what it looked like: `||` has higher priority, so an undefined elem would not result in an empty string. Change-Id: I1e361842f060815b04802a1ab8f077faa1a8bc6b
This commit is contained in:
parent
73c90a0e7d
commit
8d0202a664
|
@ -65,7 +65,7 @@ ve.dm.MWReferenceNode.static.listKeyRegex = /^(auto|literal)\/([\s\S]*)$/;
|
|||
ve.dm.MWReferenceNode.static.toDataElement = function ( domElements, converter ) {
|
||||
function getReflistItemHtml( id ) {
|
||||
const elem = converter.getHtmlDocument().getElementById( id );
|
||||
return elem && elem.innerHTML || '';
|
||||
return ( elem && elem.innerHTML ) || '';
|
||||
}
|
||||
|
||||
const mwDataJSON = domElements[ 0 ].getAttribute( 'data-mw' );
|
||||
|
|
Loading…
Reference in a new issue