mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
Fix logical conflicts from the transclusion merge.
Change-Id: Ic9d708cdba74c908d14839def5050c8825134c56
This commit is contained in:
parent
409afcbce9
commit
642a84483e
|
@ -176,7 +176,7 @@ ve.dm.MWTransclusionModel.prototype.getPlainObject = function () {
|
|||
|
||||
// Use single-part format when possible
|
||||
if ( obj.parts.length === 1 ) {
|
||||
obj = this.content.parts[0].template;
|
||||
obj = obj.parts[0].template;
|
||||
}
|
||||
|
||||
return obj;
|
||||
|
|
|
@ -97,11 +97,10 @@ ve.ui.MWTransclusionDialog.prototype.onClose = function ( action ) {
|
|||
|
||||
// TODO: Wrap attribute changes in ve.dm.SurfaceFragment
|
||||
surfaceModel.change(
|
||||
ve.dm.Transaction.newFromAttributeChange(
|
||||
ve.dm.Transaction.newFromAttributeChanges(
|
||||
surfaceModel.getDocument(),
|
||||
this.node.getOffset(),
|
||||
'mw',
|
||||
this.transclusion.getPlainObject()
|
||||
{ 'mw': this.transclusion.getPlainObject() }
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue