r93931 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93930‎ | r93931 | r93932 >
Date:22:35, 4 August 2011
Author:inez
Status:deferred
Tags:
Comment:
Use our very own indexOfAnnotation instead of indexOf
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.Content.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Content.js
@@ -700,12 +700,12 @@
701701 } else if ( !leftPlain && !rightPlain ) {
702702 // [formatted][formatted] pair, open/close any differences
703703 for ( j = 1; j < left.length; j++ ) {
704 - if ( right.indexOf( left[j] ) === -1 ) {
 704+ if ( this.indexOfAnnotation( i , left[j], true ) === -1 ) {
705705 this.handleAnnotation( 'close', left[j], line.annotations, i - offset );
706706 }
707707 }
708708 for ( j = 1; j < right.length; j++ ) {
709 - if ( left.indexOf( right[j] ) === -1 ) {
 709+ if ( this.indexOfAnnotation( i - 1, right[j], true ) === -1 ) {
710710 this.handleAnnotation( 'open', right[j], line.annotations, i - offset );
711711 }
712712 }

Status & tagging log