r94589 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94588‎ | r94589 | r94590 >
Date:23:16, 15 August 2011
Author:inez
Status:deferred
Tags:
Comment:
Small fix for getLineIndex
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.Flow.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Flow.js
@@ -51,11 +51,13 @@
5252 }
5353
5454 es.Flow.prototype.getLineIndex = function( offset ) {
55 - for ( var i = 0; i < this.lines.length; i++ ) {
 55+ var i;
 56+ for ( i = 0; i < this.lines.length; i++ ) {
5657 if ( this.lines[i].range.containsOffset( offset ) ) {
57 - return i;
 58+ break;
5859 }
5960 }
 61+ return i;
6062 };
6163
6264 /**

Status & tagging log