mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "ve.ce.MWHeadingNode: Fix Uncaught TypeError: this.root is null"
This commit is contained in:
commit
0d3f7941e6
|
@ -37,7 +37,7 @@ ve.ce.MWHeadingNode.prototype.onSetup = function () {
|
|||
ve.ce.MWHeadingNode.super.prototype.onSetup.call( this );
|
||||
|
||||
// Make reference to the surface
|
||||
this.surface = this.root.getSurface().getSurface();
|
||||
this.surface = this.root && this.root.getSurface().getSurface();
|
||||
this.rebuildToc();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue