Index: trunk/parsers/wikidom/lib/hype/views/es.ListView.js |
— | — | @@ -28,14 +28,14 @@ |
29 | 29 | es.ListView.prototype.enumerate = function() { |
30 | 30 | var styles, |
31 | 31 | levels = []; |
32 | | - for ( var i = 0; i < this.length; i++ ) { |
33 | | - styles = this[i].model.getElementAttribute( 'styles' ); |
| 32 | + for ( var i = 0; i < this.children.length; i++ ) { |
| 33 | + styles = this.children[i].model.getElementAttribute( 'styles' ); |
34 | 34 | levels = levels.slice( 0, styles.length ); |
35 | 35 | if ( styles[styles.length - 1] === 'number' ) { |
36 | 36 | if ( !levels[styles.length - 1] ) { |
37 | 37 | levels[styles.length - 1] = 0; |
38 | 38 | } |
39 | | - this[i].setNumber( ++levels[styles.length - 1] ); |
| 39 | + this.children[i].setNumber( ++levels[styles.length - 1] ); |
40 | 40 | } |
41 | 41 | } |
42 | 42 | }; |