VisualDiff: Ignore changes to originalMw

This can happen when switching editors.

Change-Id: Iec86efcdf5488918e53d69a0217d1ec4e3bb7f88
This commit is contained in:
Ed Sanders 2017-04-10 21:18:26 +01:00
parent 11769a5196
commit a6460a3025

View file

@ -123,6 +123,14 @@ ve.dm.MWReferencesListNode.static.toDomElements = function ( data, doc, converte
return els;
};
ve.dm.MWReferencesListNode.static.describeChange = function ( key ) {
if ( key === 'originalMw' ) {
return null;
}
// Parent method
return ve.dm.MWReferencesListNode.super.static.describeChange.apply( this, arguments );
};
/* Registration */
ve.dm.modelRegistry.register( ve.dm.MWReferencesListNode );