Index: trunk/extensions/VisualEditor/modules/es/views/es.ListItemView.js |
— | — | @@ -47,10 +47,6 @@ |
48 | 48 | } |
49 | 49 | }; |
50 | 50 | |
51 | | -es.ListItemView.prototype.setNumber = function( number ) { |
52 | | - this.$icon.text( number + '.' ); |
53 | | -}; |
54 | | - |
55 | 51 | /* Registration */ |
56 | 52 | |
57 | 53 | es.DocumentView.splitRules.listItem = { |
Index: trunk/extensions/VisualEditor/modules/es/views/es.ListView.js |
— | — | @@ -37,7 +37,9 @@ |
38 | 38 | if ( !levels[styles.length - 1] ) { |
39 | 39 | levels[styles.length - 1] = 0; |
40 | 40 | } |
41 | | - this.children[i].setNumber( ++levels[styles.length - 1] ); |
| 41 | + this.children[i].$icon.text( number + '.' ); |
| 42 | + } else { |
| 43 | + this.children[i].$icon.text( '' ); |
42 | 44 | } |
43 | 45 | } |
44 | 46 | }; |