mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +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 ];
|
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 [];
|
||||||
|
|
Loading…
Reference in a new issue