diff --git a/modules/ve-mw/dm/models/ve.dm.MWTransclusionModel.js b/modules/ve-mw/dm/models/ve.dm.MWTransclusionModel.js index 310a8ece87..a824436f67 100644 --- a/modules/ve-mw/dm/models/ve.dm.MWTransclusionModel.js +++ b/modules/ve-mw/dm/models/ve.dm.MWTransclusionModel.js @@ -59,6 +59,7 @@ ve.dm.MWTransclusionModel.prototype.load = function ( data ) { var i, len, part; // Convert single part format to multi-part format + // Parsoid doesn't use this format any more, but we accept it for backwards compatibility if ( data.params && data.target ) { data = { 'parts': [ { 'template': data } ] }; } @@ -244,11 +245,6 @@ ve.dm.MWTransclusionModel.prototype.getPlainObject = function () { return null; } - // Use single-part format when possible - if ( obj.parts.length === 1 ) { - obj = obj.parts[0].template; - } - return obj; };