Use deep clone for empty convertFromSource

Bug: T153254
Change-Id: I0dc6be0d20020e3fb385c9d065f9395dbda5a6b6
This commit is contained in:
Ed Sanders 2016-12-14 22:09:25 +00:00
parent ccbf20496b
commit 854256bb8e

View file

@ -155,7 +155,7 @@ ve.dm.MWWikitextSurfaceFragment.prototype.convertFromSource = function ( source
var parsePromise;
if ( !source ) {
parsePromise = $.Deferred().resolve(
this.getDocument().shallowCloneFromRange( new ve.Range( 0 ) )
this.getDocument().cloneFromRange( new ve.Range( 0 ) )
).promise();
} else {
parsePromise = new mw.Api().post( {