r105745 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105744‎ | r105745 | r105746 >
Date:02:19, 10 December 2011
Author:inez
Status:deferred
Tags:
Comment:
Temporary fix for insert method in TransactionProcessor
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/es.TransactionProcessor.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/es.TransactionProcessor.js
@@ -259,7 +259,8 @@
260260 var node,
261261 index,
262262 offset;
263 - if ( es.DocumentModel.isStructuralOffset( this.model.data, this.cursor ) ) {
 263+
 264+ if ( es.DocumentModel.isStructuralOffset( this.model.data, this.cursor ) && this.cursor != this.model.data.length ) {
264265 // FIXME: This fails when inserting something like </list><list> between 2 list items
265266 // @see test #30 in es.TransactionProcessor.test.js
266267 es.insertIntoArray( this.model.data, this.cursor, op.data );

Status & tagging log