mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-18 01:00:45 +00:00
MWTocWidget should fetch the metaList from the correct location
Follow-up to7954f5897c
Bug: T355944 Change-Id: I5070c7e958af918ffd5d5467219026ad114ca4a1 (cherry picked from commitd5cd77b254
)
This commit is contained in:
parent
e8fb5d8442
commit
90f8f6cb48
|
@ -22,7 +22,7 @@ ve.ui.MWTocWidget = function VeUiMWTocWidget( surface, config ) {
|
||||||
// Properties
|
// Properties
|
||||||
this.surface = surface;
|
this.surface = surface;
|
||||||
this.doc = surface.getModel().getDocument();
|
this.doc = surface.getModel().getDocument();
|
||||||
this.metaList = surface.getModel().metaList;
|
this.metaList = this.doc.getMetaList();
|
||||||
// Topic level 0 lives inside of a toc item
|
// Topic level 0 lives inside of a toc item
|
||||||
this.rootLength = 0;
|
this.rootLength = 0;
|
||||||
this.initialized = false;
|
this.initialized = false;
|
||||||
|
|
Loading…
Reference in a new issue