r92896 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92895‎ | r92896 | r92897 >
Date:21:25, 22 July 2011
Author:inez
Status:deferred
Tags:
Comment:
Fix: ParagraphBlock should extends only it's own methods, not Blocks methods
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.ParagraphBlock.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.ParagraphBlock.js
@@ -97,7 +97,7 @@
9898 * @param offset {Integer} Offset to find word nearest to
9999 * @return {Object} Range object of boundaries
100100 */
101 -es.Block.prototype.getWordBoundaries = function( offset ) {
 101+es.ParagraphBlock.prototype.getWordBoundaries = function( offset ) {
102102 return this.content.getWordBoundaries( offset );
103103 };
104104
@@ -109,7 +109,7 @@
110110 * @param offset {Integer} Offset to find section nearest to
111111 * @return {Object} Range object of boundaries
112112 */
113 -es.Block.prototype.getSectionBoundaries = function( offset ) {
 113+es.ParagraphBlock.prototype.getSectionBoundaries = function( offset ) {
114114 return new es.Range( 0, this.content.getLength() );
115115 };
116116

Status & tagging log