r93934 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93933‎ | r93934 | r93935 >
Date:23:23, 4 August 2011
Author:inez
Status:deferred
Tags:
Comment:
Fix minor bug with handleAnnotation
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.Content.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Content.js
@@ -638,7 +638,7 @@
639639 annotation.range = { start: index };
640640 stack.push( annotation );
641641 } else if ( bias === 'close' ) {
642 - for ( var i = 0; i < stack.length; i++ ) {
 642+ for ( var i = stack.length - 1; i >= 0; i-- ) {
643643 if ( stack[i].type === annotation.type ) {
644644 if ( es.Content.compareObjects( stack[i].data, annotation.data ) ) {
645645 stack[i].range.end = index;
@@ -716,7 +716,7 @@
717717 if ( line != null ) {
718718 if ( right ) {
719719 for ( j = 1; j < right.length; j++ ) {
720 - this.handleAnnotation( 'close', right[j], line.annotations, i - offset );
 720+ //this.handleAnnotation( 'close', right[j], line.annotations, i - offset );
721721 }
722722 }
723723 if ( !line.annotations.length ) {

Status & tagging log