r93296 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93295‎ | r93296 | r93297 >
Date:18:57, 27 July 2011
Author:inez
Status:deferred
Tags:
Comment:
Basic support for annotateContent in ListBlock
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.ListBlock.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.ListBlock.js
@@ -74,7 +74,9 @@
7575 * @param end {Integer} Offset to stop annotating to
7676 */
7777 es.ListBlock.prototype.annotateContent = function( method, annotation, start, end ) {
78 - throw 'ListBlock.annotateContent not implemented yet.';
 78+ // TODO: Support annotating multiple items at once
 79+ var location = this.list.getLocationFromOffset( start );
 80+ location.item.content.annotate( method, annotation, location.offset, location.offset + end - start );
7981 };
8082
8183 /**

Status & tagging log