Index: trunk/parsers/wikidom/lib/es/es.ListBlock.js |
— | — | @@ -0,0 +1,23 @@ |
| 2 | +es.List = function( style, items ) {
|
| 3 | + this.style = style;
|
| 4 | + this.listItems = [];
|
| 5 | +
|
| 6 | + for ( var i = 0; i < items.length; i++ ) {
|
| 7 | + this.listItems.push( new es.ListItem( items[i].line, items[i].lists || [] ) );
|
| 8 | + }
|
| 9 | +}
|
| 10 | +
|
| 11 | +es.ListItem = function( line, lists ) {
|
| 12 | + this.line = line;
|
| 13 | + this.lists = [];
|
| 14 | +
|
| 15 | + for ( var i = 0; i < lists.length; i++ ) {
|
| 16 | + this.lists.push( new es.List( lists[i].style, lists[i].items ));
|
| 17 | + }
|
| 18 | +}
|
| 19 | +
|
| 20 | +es.ListBlock = function( style, items ) {
|
| 21 | +// var list = new es.List( style, items );
|
| 22 | +}
|
| 23 | +
|
| 24 | +es.extend( es.ListBlock, es.Block );
|