r92659 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92658‎ | r92659 | r92660 >
Date:18:48, 20 July 2011
Author:inez
Status:deferred
Tags:
Comment:
Fix deleting content with 'delete' key
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.Surface.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Surface.js
@@ -245,13 +245,14 @@
246246 this.location = this.selection.end;
247247 this.selection = new es.Selection();
248248 this.deleteContent( deleteSelection );
249 - } else if ( this.location.offset < block.getLength() - 1 ) {
 249+ } else if ( this.location.offset < this.location.block.getLength() - 1 ) {
250250 var deleteSelection = new es.Selection(
251251 new es.Location( this.location.block, this.location.offset + 1 ), this.location
252252 );
253253 this.selection = new es.Selection();
254254 this.location = deleteSelection.from;
255255 this.deleteContent( deleteSelection );
 256+ this.location.offset--;
256257 }
257258 };
258259

Status & tagging log