From 854256bb8e5b5a8298d8904f1e938722cb4140c1 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Wed, 14 Dec 2016 22:09:25 +0000 Subject: [PATCH] Use deep clone for empty convertFromSource Bug: T153254 Change-Id: I0dc6be0d20020e3fb385c9d065f9395dbda5a6b6 --- modules/ve-mw/dm/ve.dm.MWWikitextSurfaceFragment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve-mw/dm/ve.dm.MWWikitextSurfaceFragment.js b/modules/ve-mw/dm/ve.dm.MWWikitextSurfaceFragment.js index 68c5850ebc..5cd872c575 100644 --- a/modules/ve-mw/dm/ve.dm.MWWikitextSurfaceFragment.js +++ b/modules/ve-mw/dm/ve.dm.MWWikitextSurfaceFragment.js @@ -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( {