Merge "GalleryNode: Pass through all arguments in describeChanges override"

This commit is contained in:
jenkins-bot 2018-04-04 17:41:08 +00:00 committed by Gerrit Code Review
commit 737a0446be

View file

@ -79,13 +79,14 @@ ve.dm.MWGalleryNode.static.toDomElements = function ( data, doc ) {
return [ ul ]; return [ ul ];
}; };
ve.dm.MWGalleryNode.static.describeChanges = function ( attributeChanges, attributes ) { ve.dm.MWGalleryNode.static.describeChanges = function ( attributeChanges, attributes, element ) {
// Only do a comparison on the 'mw.attrs' attribute // Only do a comparison on the 'mw.attrs' attribute
if ( attributeChanges.mw ) { if ( attributeChanges.mw ) {
return ve.dm.MWGalleryNode.super.static.describeChanges.call( return ve.dm.MWGalleryNode.super.static.describeChanges.call(
this, this,
ve.ui.DiffElement.static.compareAttributes( attributeChanges.mw.from.attrs || {}, attributeChanges.mw.to.attrs || {} ), ve.ui.DiffElement.static.compareAttributes( attributeChanges.mw.from.attrs || {}, attributeChanges.mw.to.attrs || {} ),
attributes attributes,
element
); );
} }
return []; return [];