Fixup Ie40baad: Avoid triggering surfaceReady when adding dummy surface

Change-Id: I01f77633a11c6c5b8d484836940ea10b975c7a9e
This commit is contained in:
Ed Sanders 2018-08-25 18:06:37 +01:00
parent 99485b7cbb
commit e67f870922

View file

@ -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' }
] ) );