mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-27 04:06:51 +00:00
Fixup Ie40baad: Avoid triggering surfaceReady when adding dummy surface
Change-Id: I01f77633a11c6c5b8d484836940ea10b975c7a9e
This commit is contained in:
parent
99485b7cbb
commit
e67f870922
|
@ -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' }
|
||||
] ) );
|
||||
|
|
Loading…
Reference in a new issue