mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
Merge "GalleryNode: Pass through all arguments in describeChanges override"
This commit is contained in:
commit
737a0446be
|
@ -79,13 +79,14 @@ ve.dm.MWGalleryNode.static.toDomElements = function ( data, doc ) {
|
|||
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
|
||||
if ( attributeChanges.mw ) {
|
||||
return ve.dm.MWGalleryNode.super.static.describeChanges.call(
|
||||
this,
|
||||
ve.ui.DiffElement.static.compareAttributes( attributeChanges.mw.from.attrs || {}, attributeChanges.mw.to.attrs || {} ),
|
||||
attributes
|
||||
attributes,
|
||||
element
|
||||
);
|
||||
}
|
||||
return [];
|
||||
|
|
Loading…
Reference in a new issue