From fdb4062aec71769bd3a2f002259af6719f960f83 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Tue, 21 Jan 2014 17:35:45 +0000 Subject: [PATCH] Remove unnecessary strangely written range clone Probably left over from when the range calculation was more complex. Change-Id: I59c989bac0d80f4a12e57cbd41bdc6587acd964a --- modules/ve-mw/dm/nodes/ve.dm.MWReferenceNode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve-mw/dm/nodes/ve.dm.MWReferenceNode.js b/modules/ve-mw/dm/nodes/ve.dm.MWReferenceNode.js index 590c114854..b04104d0df 100644 --- a/modules/ve-mw/dm/nodes/ve.dm.MWReferenceNode.js +++ b/modules/ve-mw/dm/nodes/ve.dm.MWReferenceNode.js @@ -132,7 +132,7 @@ ve.dm.MWReferenceNode.static.toDomElements = function ( dataElement, doc, conver if ( setContents && !contentsAlreadySet ) { converter.getDomSubtreeFromData( - itemNode.getDocument().getFullData( new ve.Range( itemNodeRange.start, itemNodeRange.end ), true ), + itemNode.getDocument().getFullData( itemNodeRange, true ), itemNodeWrapper ); itemNodeHtml = $( itemNodeWrapper ).html(); // Returns '' if itemNodeWrapper is empty