Merge "Remove dead extra comparison from VE JavaScript code"

This commit is contained in:
jenkins-bot 2019-05-28 23:18:17 +00:00 committed by Gerrit Code Review
commit 6c2ba09132

View file

@ -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;
} );