r102606 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102605‎ | r102606 | r102607 >
Date:23:39, 9 November 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Improved optimization, was previously limited to merging sets of 2
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/es.Transaction.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/es.Transaction.js
@@ -35,11 +35,13 @@
3636 case 'retain':
3737 a.length += b.length;
3838 this.operations.splice( i + 1, 1 );
 39+ i--;
3940 break;
4041 case 'insert':
4142 case 'remove':
4243 a.content = a.content.concat( b.content );
4344 this.operations.splice( i + 1, 1 );
 45+ i--;
4446 break;
4547 }
4648 }

Status & tagging log