r92079 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92078‎ | r92079 | r92080 >
Date:18:48, 13 July 2011
Author:inez
Status:deferred
Tags:
Comment:
use getIndex() instead of index()
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.Block.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Block.js
@@ -31,7 +31,7 @@
3232 if ( !this.document ) {
3333 throw 'Missing document error. Block is not attached to a document.';
3434 }
35 - var index = this.index() + 1;
 35+ var index = this.getIndex() + 1;
3636 return this.document.blocks.length > index ? this.document.blocks[index] : null;
3737 };
3838

Status & tagging log