Remove unnecessary strangely written range clone

Probably left over from when the range calculation was more complex.

Change-Id: I59c989bac0d80f4a12e57cbd41bdc6587acd964a
This commit is contained in:
Ed Sanders 2014-01-21 17:35:45 +00:00
parent 22b49f3d5b
commit fdb4062aec

View file

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