From d7d4eb3126306afe844abefebfc48ac4f598dd99 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Thu, 10 May 2018 17:21:13 +0100 Subject: [PATCH] Use ve.ce.nodeFactory.createFromModel Change-Id: I1a826c3c0985ef0d8ad0b669886e29aa021c90c1 Depends-On: I259face33154b795143c8820abdfb6b4a495f141 --- modules/ve-mw/dm/nodes/ve.dm.MWTransclusionNode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve-mw/dm/nodes/ve.dm.MWTransclusionNode.js b/modules/ve-mw/dm/nodes/ve.dm.MWTransclusionNode.js index 66a634afd7..f3248a91db 100644 --- a/modules/ve-mw/dm/nodes/ve.dm.MWTransclusionNode.js +++ b/modules/ve-mw/dm/nodes/ve.dm.MWTransclusionNode.js @@ -207,7 +207,7 @@ ve.dm.MWTransclusionNode.static.toDomElements = function ( dataElement, doc, con } else if ( converter.isForPreview() ) { modelNode = ve.dm.nodeFactory.createFromElement( dataElement ); modelNode.setDocument( converter.internalList.getDocument() ); - viewNode = ve.ce.nodeFactory.create( modelNode.getType(), modelNode ); + viewNode = ve.ce.nodeFactory.createFromModel( modelNode ); if ( !viewNode.hasRendering() ) { viewNode.onSetup(); viewNode.$element