Merge "Fix logical conflicts from the transclusion merge."

This commit is contained in:
jenkins-bot 2013-06-17 18:14:29 +00:00 committed by Gerrit Code Review
commit 59bf9966b4
2 changed files with 3 additions and 4 deletions

View file

@ -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;

View file

@ -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() }
)
);
}