From e67f870922a3cd6b048d5ac85aae790b65b3f263 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Sat, 25 Aug 2018 18:06:37 +0100 Subject: [PATCH] Fixup Ie40baad: Avoid triggering surfaceReady when adding dummy surface Change-Id: I01f77633a11c6c5b8d484836940ea10b975c7a9e --- modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js index 02dad3ad32..862208565a 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js @@ -448,7 +448,8 @@ ve.init.mw.DesktopArticleTarget.prototype.activate = function ( dataPromise ) { this.setupLocalNoticeMessages(); // Create dummy surface to show toolbar while loading - surface = this.addSurface( new ve.dm.Document( [ + // Call ve.init.Target directly to avoid firing surfaceReady + surface = ve.init.Target.prototype.addSurface.call( this, new ve.dm.Document( [ { type: 'paragraph' }, { type: '/paragraph' }, { type: 'internalList' }, { type: '/internalList' } ] ) );