r92720 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92719‎ | r92720 | r92721 >
Date:00:46, 21 July 2011
Author:inez
Status:deferred
Tags:
Comment:
Initial commit of ListBlock class - support for bullet and number lists to be added
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.ListBlock.js (added) (history)

Diff [purge]

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 );

Status & tagging log