mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +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] + '.' );
|
this.children[i].$icon.text( ++levels[styles.length - 1] + '.' );
|
||||||
} else {
|
} else {
|
||||||
this.children[i].$icon.text( '' );
|
this.children[i].$icon.text( '' );
|
||||||
levels = [];
|
if ( levels[styles.length - 1] ) {
|
||||||
|
levels[styles.length - 1] = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue