mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Fix bug in enumarete method of ListView
This commit is contained in:
parent
2e0a0e0243
commit
4a31a6b265
|
@ -43,7 +43,9 @@ es.ListView.prototype.enumerate = function() {
|
|||
this.children[i].$icon.text( ++levels[styles.length - 1] + '.' );
|
||||
} else {
|
||||
this.children[i].$icon.text( '' );
|
||||
levels = [];
|
||||
if ( levels[styles.length - 1] ) {
|
||||
levels[styles.length - 1] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue