Index: trunk/parsers/wikidom/lib/es/es.ListBlockItem.js |
— | — | @@ -30,6 +30,15 @@ |
31 | 31 | } );
|
32 | 32 | }
|
33 | 33 |
|
| 34 | +/**
|
| 35 | + * Gets the index of the item within it's list.
|
| 36 | + *
|
| 37 | + * @returns {Integer} Index of item
|
| 38 | + */
|
| 39 | +es.ListBlockItem.prototype.getIndex = function() {
|
| 40 | + return this.list._list.indexOf( this );
|
| 41 | +};
|
| 42 | +
|
34 | 43 | es.ListBlockItem.prototype.getLength = function() {
|
35 | 44 | var length = this.content.getLength() + 1;
|
36 | 45 | for ( var i = 0; i < this.lists.length; i++ ) {
|