mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-28 08:50:07 +00:00
Merge "Remove dead extra comparison from VE JavaScript code"
This commit is contained in:
commit
6c2ba09132
|
@ -212,11 +212,12 @@ ve.ce.MWReferencesListNode.prototype.update = function () {
|
|||
return false;
|
||||
}
|
||||
// Exclude references defined inside the references list node
|
||||
while ( ( node = node.parent ) && node !== null ) {
|
||||
do {
|
||||
node = node.parent;
|
||||
if ( node instanceof ve.dm.MWReferencesListNode ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} while ( node );
|
||||
return true;
|
||||
} );
|
||||
|
||||
|
|
Loading…
Reference in a new issue